CN112328149B - Picture format setting method and device and electronic equipment - Google Patents

Picture format setting method and device and electronic equipment Download PDF

Info

Publication number
CN112328149B
CN112328149B CN202011253735.7A CN202011253735A CN112328149B CN 112328149 B CN112328149 B CN 112328149B CN 202011253735 A CN202011253735 A CN 202011253735A CN 112328149 B CN112328149 B CN 112328149B
Authority
CN
China
Prior art keywords
target
picture
input
page
pictures
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011253735.7A
Other languages
Chinese (zh)
Other versions
CN112328149A (en
Inventor
陈慧均
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011253735.7A priority Critical patent/CN112328149B/en
Publication of CN112328149A publication Critical patent/CN112328149A/en
Application granted granted Critical
Publication of CN112328149B publication Critical patent/CN112328149B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/532Query formulation, e.g. graphical querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The application discloses a setting method and device of a picture format and electronic equipment, relates to the technical field of software, and can solve the problems of complex steps and long consumed time in the setting process of the picture format of a picture in a document. The method comprises the following steps: receiving a first input of a user in a case where a target document is displayed; determining at least two target pictures in the target document in response to a first input; receiving a second input of the user; and responding to the second input, and setting the picture format of the target picture as the target picture format corresponding to the second input. The method and the device are applied to picture format adjusting scenes in documents.

Description

Picture format setting method and device and electronic equipment
Technical Field
The application belongs to the technical field of software, and particularly relates to a setting method and device of a picture format and electronic equipment.
Background
In the text editing process, in order to help a user to analyze and express viewpoints more intuitively and clearly, in the process that the user edits the text in a document, a picture is inserted into the text, and the viewpoint of the user is expressed intuitively in a form of combining pictures and texts.
In the related art, when a user wants to insert multiple pictures into a document, the user usually needs to continuously adjust the format or size of each picture in sequence in order to make the format of the whole document uniform. Therefore, the steps of the whole format setting process are complicated, the time consumption is long, and the whole convenience is too low.
Content of application
The embodiment of the application aims to provide a setting method and device of a picture format and electronic equipment, and the problems that steps are complicated and time consumption is long in the setting process of the picture format of a picture in a document can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for setting a picture format, where the method includes: receiving a first input of a user in a case where a target document is displayed; determining at least two target pictures in the target document in response to a first input; receiving a second input of the user; and responding to the second input, and setting the picture format of the target picture as the target picture format corresponding to the second input.
In a second aspect, an embodiment of the present application provides a setting apparatus for a picture format, where the apparatus includes: the receiving module is used for receiving a first input of a user under the condition that the target document is displayed; a determining module, configured to determine at least two target pictures in the target document in response to the first input received by the receiving module; the receiving module is also used for receiving a second input of the user; and the setting module is used for responding to the second input received by the receiving module and setting the picture format of the target picture into a target picture format corresponding to the second input.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, the present application provides a computer program product stored on a non-volatile storage medium, the program product being executed by at least one processor to implement the method according to the first aspect.
In this embodiment of the application, in the case of displaying a target document, after receiving a first input of a user, an electronic device may determine at least two target pictures that need to be format-adjusted from the target document, and then, after receiving a second input of the user, the electronic device may perform unified format adjustment on picture formats of the at least two target pictures based on a target picture format corresponding to the second input, thereby completing format setting of multiple pictures in the document at one time. Therefore, the repeated format adjustment work of the plurality of pictures in the document by the user is avoided, the time and the energy for the user to modify the document are saved, and the document modification efficiency is improved.
Drawings
Fig. 1 is a schematic flowchart of a setting method for a picture format according to an embodiment of the present application;
fig. 2 is a schematic interface diagram applied to a method for setting a picture format according to an embodiment of the present disclosure;
fig. 3 is a second schematic interface diagram applied to a method for setting a picture format according to an embodiment of the present application;
fig. 4 is a third schematic interface diagram applied to a method for setting a picture format according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a setting apparatus for a picture format according to an embodiment of the present application;
fig. 6 is a second schematic structural diagram of a setting apparatus for setting a picture format according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a setting method of a picture format provided in the embodiment of the present application by using a specific embodiment and an application scenario thereof with reference to the drawings.
In the related art, when a user wants to insert multiple pictures into a document, the user usually needs to continuously adjust the format or size of each picture in sequence in order to make the format of the whole document uniform. Specifically, when the number of pictures inserted in the document is large, since the pictures are usually scattered in the respective chapters of the document, there is no way to collectively select multiple pictures at one time and set the pictures at the same time. Therefore, the user needs to select pictures one by one in the document to set the format and the size, the whole operation process is repeated and tedious, some pictures or some format steps are easy to miss, and the user needs to repeatedly confirm and check one by one. Even if the format brush function in the document is used, the copy operation of the format needs to be performed next to the selected picture.
The embodiment of the application provides a method and a device for setting a picture format and electronic equipment, wherein under the condition of displaying a target document, after receiving a first input of a user, the electronic equipment can determine at least two target pictures needing format adjustment from the target document, and then after receiving a second input of the user, the electronic equipment can perform unified format adjustment on the picture formats of the at least two target pictures based on the target picture format corresponding to the second input, so that the format setting of a plurality of pictures in the document is completed at one time. Therefore, the repeated format adjustment work of the plurality of pictures in the document by the user is avoided, the time and the energy for the user to modify the document are saved, and the document modification efficiency is improved.
Fig. 1 shows a flowchart of a setting method for a picture format provided in an embodiment of the present application. As shown in fig. 1, the setting method for a picture format provided in the embodiment of the present application may include steps 201 to 204 described below.
Step 201: in a case where a target document is displayed, a first input of a user is received.
In this embodiment of the application, the first input is used to trigger a multi-graph format setting function, so that the electronic device may perform batch adjustment on multi-graph formats in a target document when the target document is edited. Illustratively, the first input may include a user input clicking on a "multi-drawing format settings" control in the target document.
In this embodiment of the application, the first input may be a touch input of a user on the target document, or other feasible inputs, which is not limited in this embodiment of the application.
In the embodiment of the present application, the target document is a document edited by using various office software.
Step 202: at least two target pictures in the target document are determined in response to the first input.
In this embodiment of the application, in the case that the first input is used to select a page, the setting device of the picture format may perform page selection (may select a single page or multiple pages) after receiving the first input, then determine a target page from the target document, then perform picture recognition on the target page, and determine a target picture that needs to be formatted from the target page.
In this embodiment of the application, when the first input is used to select the target picture, the setting device of the picture format may directly determine, after receiving the first input, the target picture that needs to be formatted from the target document.
Step 203: a second input by the user is received.
In the embodiment of the present application, the second input is used to set a picture format.
Illustratively, the second input is used for setting the picture format of the target picture to the target picture format.
Illustratively, the target picture format includes at least one of: the picture position, the surrounding format of characters in the picture, the picture size, the content filled in the picture (for example, the line format of lines filled in the picture), the picture color, the shadow effect of the picture and the like. For example, the size of the target picture is set to "height 7.3cm, width 7.65cm, zoom 34%".
Step 204: and responding to a second input, and setting the picture formats of the at least two target pictures as the target picture format corresponding to the second input.
In this embodiment of the application, the picture format setting process may include any one of the following: the method comprises the steps of changing the position of a picture, changing the size of the picture, changing the format of characters in the picture, changing the content filled in the picture, adding specific information on the picture (for example, adding mosaic on the content filled in the picture, amplifying important content in the picture, and the like) and the like.
In this embodiment of the present application, in a case that a target document is displayed, after receiving a first input from a user, a picture format setting device may determine at least two target pictures that need to be format-adjusted from the target document, and then, after receiving a second input from the user, the picture format setting device may perform unified format adjustment on the picture formats of the at least two target pictures based on a target picture format corresponding to the second input, thereby completing format setting of multiple pictures in the document at one time. Therefore, the repeated format adjustment work of the plurality of pictures in the document by the user is avoided, the time and the energy for the user to modify the document are saved, and the document modification efficiency is improved.
Optionally, in this embodiment of the present application, when the setting device for the picture format determines the target picture that needs to be subjected to format adjustment from the target document, the setting device for the picture format may be implemented in at least two implementation manners:
a first possible implementation (rapid concentration of pictures to be selected by page selection):
in the implementation mode, the picture format setting device can perform picture identification on the document content in the selected page through page selection, and then automatically select the identified pictures, so that the pictures scattered on a plurality of pages are selected in a centralized manner at one time, the picture format setting of the pictures is completed at one time, the repeated work of a user is avoided, and the document modification efficiency is improved.
Illustratively, the step 202 may include the following steps 202a1 and 202a 2:
step 202a 1: in response to the first input, a target page is determined from the target document.
Step 202a 2: and taking at least two pictures in the target page as target pictures.
Illustratively, after a user selects a page to be modified from a target document, the page is scanned, pictures in the page are identified, and then all or part of the pictures meeting the conditions on the page are selected for uniform picture setting.
Illustratively, the first input is used to determine the target page.
Therefore, the user can select the pages of the plurality of pictures to be modified at the same time, so that the pictures with the formats required to be modified can be selected from the pages at the same time, the unified setting of the picture formats can be carried out at one time, the user is prevented from selecting the pictures one by one to adjust the formats, the time is greatly saved, the uniformity of the formats of the pictures is ensured, and the working efficiency is improved.
As one possible example, the first input may be used to input a page number of the target page.
In another possible example, the first input is used to trigger the setting device of the picture format to display the page identifier of all or part of the pages in the target document. Based on this, the above step 202a1 may include the following steps a1 to A3:
step A1: in response to the first input, a page identification of at least one page in the target document is displayed.
Step A2: and receiving a third input of the target page identifier in the at least one page identifier from the user.
Step A3: and responding to the third input, and taking the page corresponding to the target page identification as a target page.
Illustratively, the at least one page may be all or a portion of the pages in the target document.
Illustratively, the third input may be any feasibility input of the target page identification by the user. For example, a click input to the target page identification is clicked.
For example, the setting device for picture format may display the page identifier in the page identifier display window after receiving the first input, however, since the number of page identifiers that can be displayed by the page identifier display window is limited, the user may control the setting device for picture format to update the page identifier in the page identifier display window by a specific operation (for example, clicking an "up page" key or a "down page" key). Therefore, more page identifiers can be displayed in the page identifier display window, so that the user can select a page which is required to be adjusted from the more page identifiers.
For example, as shown in fig. 2, assuming that the user has triggered the electronic device to turn on the multi-map format setting function of "document 1", the electronic device displays a page identification display window (31 in fig. 2) on the display interface of the "document 1". The page identifier display window 31 displays the picture page sequence information and the preview of the current page, wherein the picture page sequence information displays page thumbnails (i.e. the above-mentioned page identifiers) of some pages, and a check button is provided below each page to check the page, which means that all pictures in the page need to be subjected to picture format modification, and no check indicates that the pictures in the page do not participate in the current format modification operation. The user checks the page where the user wants to modify the picture in the page identification display window 31 as required (for example, the user checks page 2, page 3 and page 6 in fig. 2). Meanwhile, when a user points a mouse to a certain page thumbnail, the page corresponding to the page thumbnail can be displayed in the preview area in the middle in an enlarged mode, and the user can conveniently check the page. In addition, the user can click the left and right arrows at two sides of the page sequence information column of the picture, so that the page sequence is updated, and the user can conveniently select more pages.
As another possible example, in the case where the first input is used to select a first page in the target document, the step 202a1 may include the following step B1:
step B1: in response to the first input, a second page associated with the first page is determined from the target document.
The target page comprises the first page and the second page.
Illustratively, the first input is for inputting a page number of the first page.
For example, when there are many pages in the target document, it may result in that the user cannot fully confirm all the page numbers of the picture to be modified, and therefore, the user may select a part of the pages (i.e. the first page) and then select a page similar to the page content or style of the previous page from the remaining pages.
For example, referring to fig. 2, as shown in fig. 3, when the user selects page 2 for the first time, the electronic device may determine that there are pictures with similar layout, style, specification, etc. as page 2 on page 8 in "document 1" according to the picture similarity test, and at this time, the electronic device may prompt the user whether to additionally select page 8. If the user selects 'yes', the 8 th page is added, and if the user selects 'no', the page is directly selected or the subsequent picture format modification process is carried out.
Therefore, part of pages are selected, and other pages similar to the previously selected pages are automatically supplemented through page picture similarity detection, so that the complicated operation of selecting the pages by a user is reduced, and the document modification efficiency is improved.
As another possible example, in the case where the first input is used to input a first keyword, the step 202a1 may include the following step C1:
step C1: and responding to the first input, determining a third page containing the first keyword from the target document, and taking the first picture in the third page as a target picture.
The first picture is a picture which is semantically associated with the first keyword.
For example, the first input may be an input of a first keyword entered by a user in an input box. It can be understood that the primary purpose of the first keyword input by the first input is to lock the selection range of the picture and locate the area of the picture to be selected.
For example, when determining the first picture from the third page, the setting device in the picture format may select a picture from the third page that has semantic association with the first keyword based on the context of the first keyword in the third page. Alternatively, when determining the first picture from the third page, the setting device for picture format may select the first picture from the third page based on the position of the first keyword in the third page, for example, a picture above and/or below the first keyword, or a picture away from the first keyword by a certain paragraph.
For example, in the process of selecting a specific first picture from the third page, the setting device for picture format may select the specific first picture according to a preset selection rule. In an example, the setting of the selection rule may be performed with reference to a setting interface shown in fig. 4, as shown in fig. 4, the user may select from four options of "upper", "lower", "upper" and "lower" and "semantic analysis", and if the semantic analysis is selected, the setting device in the picture format may perform semantic analysis on the third page, and select a picture that is semantically associated with the first keyword from the third page.
Therefore, the local scattered pictures in the specific range of the keywords can be automatically positioned by using the keywords, the local scattered pictures can be selected in a concentrated mode at one time, repeated picture selection work is avoided, the pictures to be modified can be selected more accurately, and the document modification efficiency is improved.
A second possible implementation:
for example, in the case that the first input is used to input a second keyword and the target document at least includes N pictures, the step 202 may include the following steps 202b1 and 202b 2:
step 202b 1: and responding to the first input, and determining a target corresponding relation containing the second keyword from the N corresponding relations corresponding to the N pictures.
Wherein, one picture corresponds to one corresponding relation; the correspondence relationship corresponding to any one of the pictures includes: the mapping relation between the picture content information of any picture and any picture.
Step 202b 2: and taking the picture corresponding to the target corresponding relation as a target picture.
For example, when a user edits a target document, the picture format setting device performs picture character recognition on each picture inserted by the user, and then establishes and stores a mapping relationship between picture content information of the picture and the picture, where the picture content information may include: the text information in the picture and the text description information of the pattern of the picture. In one example, the setting means of the picture format establishes an index for the mapping relationship of each picture, such as the picture number of the picture.
For example, one storage manner in which the setting device in picture format stores the mapping relationship of each picture is as follows:
{ picture 1: { picture position, picture content information in a picture };
{ picture 2: { picture position, picture content information in picture }.
The picture1 can be a picture index of picture1, and similarly, the picture2 can be a picture index of picture 2.
For example, the second keyword input by the first input may be picture content information of a certain picture. In this way, the setting device for picture format may use the second keyword as an index to find out a target mapping relationship matching the second keyword from the stored multiple mapping relationships, and then based on the target mapping relationship.
Illustratively, in conjunction with the above step 202b1 and step 202b2, the picture format setting means may perform uniform format setting on the target area in each of the at least two target pictures. The image content in the target area of any one of the target images is associated with a second keyword, and the target image format corresponding to the second input is also associated with the second keyword.
In an example, taking the picture content information in the mapping relationship as the text information in the picture as an example, after receiving a second keyword input by a user, the setting device for picture format may take out a picture containing the second keyword from the picture text from the memory based on the second keyword, then simultaneously select all the screened pictures based on the positions of the pictures, and then edit and modify the pictures according to the configured target format information. For example, in the case where the second keyword is a name, the setting device for picture format performs mosaic coding on the region of the name where the target picture appears.
Therefore, the picture content is retrieved through the keywords, all pictures with the picture content matched with the keywords are searched from the whole document at one time, the picture searching efficiency is improved, and the document modification efficiency is also improved.
It should be noted that, in the setting method for a picture format provided in the embodiment of the present application, the execution subject may be a setting device for a picture format, or a control module in the setting device for a picture format, which is used for executing the setting method for loading a picture format. In the embodiment of the present application, a setting method for loading a picture format performed by a setting device for a picture format is taken as an example, and the setting method for a picture format provided in the embodiment of the present application is described.
An embodiment of the present application provides a setting device for a picture format, as shown in fig. 5, the device includes: a receiving module 401, a determining module 402, and a setting module 403, wherein:
a receiving module 401, configured to receive a first input of a user in a case where a target document is displayed; a determining module 402, configured to determine at least two target pictures in the target document in response to the first input received by the receiving module; the receiving module 401 is further configured to receive a second input from the user; a setting module 403, configured to, in response to the second input received by the receiving module 401, set the picture format of the target picture determined by the determining module 402 to a target picture format corresponding to the second input.
Optionally, the determining module 402 is specifically configured to: determining a target page from the target document in response to the first input received by the receiving module 401; and taking at least two pictures in the target page as target pictures.
Optionally, as shown in fig. 6, the apparatus further includes: a display module 404, wherein: a display module 404, configured to display a page identifier of at least one page in the target document in response to the first input received by the receiving module 401; the receiving module 401 is further configured to receive a third input of the target page identifier in the at least one page identifier from the user; the determining module 402 is specifically configured to, in response to the third input received by the receiving module 401, use a page corresponding to the target page identifier as a target page.
Optionally, the first input is used to select a first page in the target document; the determining module 402 is specifically configured to: determining a second page associated with the first page from the target document in response to the first input received by the receiving module 401; the target page comprises the first page and the second page.
Optionally, the first input is used for inputting a first keyword; the determining module 402 is specifically configured to: in response to the first input received by the receiving module 401, determining a third page including the first keyword from the target document, and taking a first picture in the third page as the target picture; the first picture is a picture which is semantically related to the first keyword.
Optionally, the first input is used for inputting a second keyword; the target document at least comprises N pictures; the determining module 402 is specifically configured to: in response to the first input received by the receiving module 401, determining a target corresponding relationship including the second keyword from N corresponding relationships corresponding to the N pictures; the corresponding relation of any picture comprises: the mapping relation between the picture content information of any picture and any picture; and taking the picture corresponding to the target corresponding relation as a target picture.
In the setting apparatus for picture formats provided in this embodiment of the present application, in a case that a target document is displayed, after receiving a first input from a user, the setting apparatus for picture formats may determine at least two target pictures that need to be format-adjusted from the target document, and then, after receiving a second input from the user, the setting apparatus for picture formats may perform unified format adjustment on the picture formats of the at least two target pictures based on a target picture format corresponding to the second input, thereby completing format setting of multiple pictures in the document at one time. Therefore, the repeated format adjustment work of the plurality of pictures in the document by the user is avoided, the time and the energy for the user to modify the document are saved, and the document modification efficiency is improved.
The setting device of the picture format in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The setting device of the picture format in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The setting device for picture formats provided in the embodiment of the present application can implement each process implemented by the setting device for picture formats in the above method embodiments, and is not repeated here to avoid repetition.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor 110, a memory 109, and a program or an instruction stored in the memory 109 and executable on the processor 110, where the program or the instruction is executed by the processor 110 to implement each process of the above-mentioned setting method for picture formats, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
A user input unit 107 for receiving a first input of a user in a case where a target document is displayed; a processor 110, configured to determine at least two target pictures in the target document in response to the first input received by the user input unit 107; the user input unit 107 is further configured to receive a second input from the user; the processor 110 is further configured to set, in response to the second input received by the user input unit 107, a picture format of the target picture to a target picture format corresponding to the second input.
Optionally, the processor 110 is specifically configured to: determining a target page from the target document in response to the first input received by the user input unit 107; and taking at least two pictures in the target page as target pictures.
Optionally, the display unit 106 is configured to display a page identifier of at least one page in the target document in response to the first input received by the user input unit 107; the user input unit 107 is further configured to receive a third input of a target page identifier in the at least one page identifier from the user; the processor 110 is specifically configured to, in response to the third input received by the user input unit 107, take a page corresponding to the target page identifier as a target page.
Optionally, the first input is used to select a first page in the target document; the processor 110 is specifically configured to: determining a second page associated with the first page from the target document in response to the first input received by the user input unit 107; the target page comprises the first page and the second page.
Optionally, the first input is used for inputting a first keyword; the processor 110 is specifically configured to: in response to the first input received by the user input unit 107, a third page including the first keyword is determined from the target document, and a first picture in the third page is taken as the target picture; the first picture is a picture which is semantically related to the first keyword.
Optionally, the first input is used for inputting a second keyword; the target document at least comprises N pictures; the processor 110 is specifically configured to: in response to the first input received by the user input unit 107, determining a target correspondence relationship including the second keyword from N correspondence relationships corresponding to the N pictures; the corresponding relation of any picture comprises: the mapping relation between the picture content information of any picture and any picture; and taking the picture corresponding to the target corresponding relation as a target picture.
In the electronic device provided in the embodiment of the present application, in a case that a target document is displayed, after receiving a first input from a user, a picture format setting device may determine at least two target pictures whose formats need to be adjusted from the target document, and then, after receiving a second input from the user, the electronic device may perform unified format adjustment on the picture formats of the at least two target pictures based on a target picture format corresponding to the second input, thereby completing format setting of multiple pictures in the document at one time. Therefore, the repeated format adjustment work of the plurality of pictures in the document by the user is avoided, the time and the energy for the user to modify the document are saved, and the document modification efficiency is improved.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned setting method for a picture format, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above-mentioned setting method for picture formats, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The present embodiments provide a computer program product, stored in a non-volatile storage medium, for execution by at least one processor of the processes of the setting method embodiments in the above-described picture format.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application 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 application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A setting method of a picture format is characterized by comprising the following steps:
receiving a first input of a user in the case of displaying a target document, the first input being used for inputting a second keyword;
determining at least two target pictures in the target document in response to the first input, picture content in a target area of any one of the at least two target pictures being associated with the second keyword;
receiving a second input of the user;
in response to the second input, setting the picture format of the target picture to a target picture format corresponding to the second input, the target picture format corresponding to the second input being associated with the second keyword.
2. The method of claim 1, wherein determining at least two target pictures in the target document in response to the first input comprises:
determining a target page from the target document in response to the first input;
and taking at least two pictures in the target page as target pictures.
3. The method of claim 2, wherein said determining a target page from the target document in response to the first input comprises:
displaying a page identification of at least one page in the target document in response to the first input;
receiving a third input of a target page identifier in the at least one page identifier from a user;
and responding to the third input, and taking the page corresponding to the target page identification as a target page.
4. The method of claim 2, wherein the first input is used to select a first page in the target document;
said determining a target page from said target document in response to said first input comprises:
determining, from the target document, a second page associated with the first page in response to the first input;
wherein the target page comprises the first page and the second page.
5. The method of claim 2, wherein the first input is for inputting a first keyword;
said determining a target page from said target document in response to said first input comprises:
responding to the first input, determining a third page containing the first keyword from the target document, and taking a first picture in the third page as the target picture;
the first picture is a picture which is semantically associated with the first keyword.
6. The method of claim 1, wherein the target document includes at least N pictures;
the determining, in response to the first input, at least two target pictures in the target document includes:
in response to the first input, determining a target corresponding relation containing the second keyword from N corresponding relations corresponding to the N pictures; the corresponding relation of any picture comprises: the mapping relation between the picture content information of any picture and any picture;
and taking the picture corresponding to the target corresponding relation as a target picture.
7. An apparatus for setting a picture format, the apparatus comprising:
the receiving module is used for receiving a first input of a user under the condition that the target document is displayed, wherein the first input is used for inputting a second keyword;
a determining module, configured to determine, in response to the first input received by the receiving module, at least two target pictures in the target document, where picture content in a target region of any one of the at least two target pictures is associated with the second keyword;
the receiving module is further used for receiving a second input of the user;
and the setting module is used for responding to the second input received by the receiving module, and setting the picture format of the target picture to be a target picture format corresponding to the second input, wherein the target picture format corresponding to the second input is associated with the second keyword.
8. The apparatus of claim 7, wherein the determining module is specifically configured to:
determining a target page from the target document in response to the first input received by the receiving module;
and taking at least two pictures in the target page as target pictures.
9. The apparatus of claim 7, wherein the target document comprises at least N pictures;
the determining module is specifically configured to:
in response to the first input received by the receiving module, determining a target corresponding relation containing the second keyword from the N corresponding relations corresponding to the N pictures; the corresponding relation of any picture comprises: the mapping relation between the picture content information of any picture and any picture;
and taking the picture corresponding to the target corresponding relation as a target picture.
10. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method of adjusting a picture format according to any one of claims 1 to 6.
CN202011253735.7A 2020-11-11 2020-11-11 Picture format setting method and device and electronic equipment Active CN112328149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011253735.7A CN112328149B (en) 2020-11-11 2020-11-11 Picture format setting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011253735.7A CN112328149B (en) 2020-11-11 2020-11-11 Picture format setting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112328149A CN112328149A (en) 2021-02-05
CN112328149B true CN112328149B (en) 2022-03-25

Family

ID=74319048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011253735.7A Active CN112328149B (en) 2020-11-11 2020-11-11 Picture format setting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112328149B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048354A (en) * 2023-03-10 2023-05-02 福昕鲲鹏(北京)信息科技有限公司 Picture format adjustment method, system and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180039A (en) * 2016-03-09 2017-09-19 腾讯科技(深圳)有限公司 A kind of text information recognition methods and device based on picture
CN108829486A (en) * 2018-06-28 2018-11-16 广州视源电子科技股份有限公司 A kind of background setting method, device, equipment and storage medium
CN109857578A (en) * 2019-01-31 2019-06-07 维沃移动通信有限公司 A kind of text clone method and electronic equipment
CN110321470A (en) * 2019-05-23 2019-10-11 平安科技(深圳)有限公司 Document processing method, device, computer equipment and storage medium
CN110532521A (en) * 2018-05-23 2019-12-03 北京金山办公软件股份有限公司 A kind of implementation method that document format is applied, device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6968504B2 (en) * 2001-06-29 2005-11-22 Microsoft Corporation Automated document formatting tool
CN101799799B (en) * 2010-02-09 2011-12-21 汉王科技股份有限公司 Electronic document noting method and device
CN109408777A (en) * 2018-10-15 2019-03-01 南京中孚信息技术有限公司 Document processing method, device and archive server based on fast browsing
CN111881307B (en) * 2020-07-28 2024-04-05 平安科技(深圳)有限公司 Presentation generation method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180039A (en) * 2016-03-09 2017-09-19 腾讯科技(深圳)有限公司 A kind of text information recognition methods and device based on picture
CN110532521A (en) * 2018-05-23 2019-12-03 北京金山办公软件股份有限公司 A kind of implementation method that document format is applied, device and electronic equipment
CN108829486A (en) * 2018-06-28 2018-11-16 广州视源电子科技股份有限公司 A kind of background setting method, device, equipment and storage medium
CN109857578A (en) * 2019-01-31 2019-06-07 维沃移动通信有限公司 A kind of text clone method and electronic equipment
CN110321470A (en) * 2019-05-23 2019-10-11 平安科技(深圳)有限公司 Document processing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112328149A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN112165553B (en) Image generation method and device, electronic equipment and computer readable storage medium
CN113014476B (en) Group creation method and device
CN112748842A (en) Text selection method and device
CN112328149B (en) Picture format setting method and device and electronic equipment
CN113407144B (en) Display control method and device
CN113849092A (en) Content sharing method and device and electronic equipment
CN111954079B (en) Image processing method, device, electronic equipment and medium
CN117270736A (en) Image display method and device and electronic equipment
CN112449110A (en) Image processing method and device and electronic equipment
CN112100463A (en) Information processing method and device, electronic equipment and readable storage medium
CN111857466A (en) Message display method and device
CN113783770B (en) Image sharing method, image sharing device and electronic equipment
CN113238686B (en) Document processing method and device and electronic equipment
CN112416143B (en) Text information editing method and device and electronic equipment
CN111694627B (en) Desktop editing method and device
CN114679546A (en) Display method and device, electronic equipment and readable storage medium
CN114443567A (en) Multimedia file management method, device, electronic equipment and medium
CN112818147A (en) Picture processing method, device, equipment and storage medium
CN114327173A (en) Information processing method and device and electronic equipment
CN111985183A (en) Character input method and device and electronic equipment
CN113010072A (en) Searching method and device, electronic equipment and readable storage medium
CN113127425A (en) Picture processing method and device and electronic equipment
CN111752428A (en) Icon arrangement method and device, electronic equipment and medium
CN112612400B (en) Text content processing method and electronic equipment
CN113037618B (en) Image sharing method and device

Legal Events

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