CN113805701A - Method for determining virtual image display range, electronic device and storage medium - Google Patents

Method for determining virtual image display range, electronic device and storage medium Download PDF

Info

Publication number
CN113805701A
CN113805701A CN202111088204.1A CN202111088204A CN113805701A CN 113805701 A CN113805701 A CN 113805701A CN 202111088204 A CN202111088204 A CN 202111088204A CN 113805701 A CN113805701 A CN 113805701A
Authority
CN
China
Prior art keywords
display
avatar
display range
determining
distance
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.)
Pending
Application number
CN202111088204.1A
Other languages
Chinese (zh)
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202111088204.1A priority Critical patent/CN113805701A/en
Publication of CN113805701A publication Critical patent/CN113805701A/en
Pending legal-status Critical Current

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/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • 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
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/01Indexing scheme relating to G06F3/01
    • G06F2203/012Walk-in-place systems for allowing a user to walk in a virtual environment while constraining him to a given position in the physical environment

Abstract

The utility model provides a method, an electronic device and a storage medium for determining the display range of an avatar, which relate to the technical field of Internet and further relate to the field of computer vision, and at least solve the technical problems of complicated operation steps and poor user experience in the prior art of checking the avatar. The specific implementation scheme is as follows: responding to a shooting operation performed on a target object by the electronic equipment, and entering a first display interface, wherein display content in the first display interface at least partially comprises an avatar corresponding to the target object; obtaining the distance between a target object and the electronic equipment; the display range of the avatar is determined based on the distance.

Description

Method for determining virtual image display range, electronic device and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and further relates to the field of computer vision, and in particular, to a method, an electronic device, and a storage medium for determining a display range of an avatar.
Background
With the acceleration of the internet process, the performance of the mobile terminal is rapidly improved, so that powerful technical support is provided for the generation and development of more and more applications, wherein the avatar social application becomes a popular communication and entertainment channel.
The current avatar social application generates a dedicated avatar of a user on a mobile terminal by photographing, and then needs to check the head and the whole body of the avatar by clicking the head and body options on the terminal screen, so that the whole operation steps are complicated, and the use experience of the user is seriously influenced.
Disclosure of Invention
The present disclosure provides a method, an electronic device and a storage medium for determining a display range of an avatar, so as to at least solve the technical problems of complicated operation steps and poor user experience in viewing the avatar in the existing scheme.
According to an aspect of the present disclosure, there is provided a method of determining an avatar display range, including: responding to a shooting operation performed on a target object by the electronic equipment, and entering a first display interface, wherein display content in the first display interface at least partially comprises an avatar corresponding to the target object; obtaining the distance between a target object and the electronic equipment; the display range of the avatar is determined based on the distance.
According to still another aspect of the present disclosure, there is provided an apparatus for determining an avatar display range, including: the display module is used for responding to shooting operation executed on a target object by the electronic equipment and entering a first display interface, wherein display content in the first display interface at least partially comprises an avatar corresponding to the target object; the acquisition module is used for acquiring the distance between the target object and the electronic equipment; and the determining module is used for determining the display range of the virtual image based on the distance.
According to still another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the method of determining an avatar display range set forth in the present disclosure.
According to still another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of determining an avatar display range set forth in the present disclosure.
According to yet another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, performs a method of determining an avatar display range as set forth in the present disclosure.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a method of determining an avatar display range according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a method of determining an avatar display range in accordance with an embodiment of the present disclosure;
fig. 3 is a block diagram of an apparatus for determining an avatar display range according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings 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 disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present disclosure, there is provided a method of determining an avatar display scope, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
The method embodiments provided by the embodiments of the present disclosure may be executed in a mobile terminal, a computer terminal or similar electronic devices. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein. Fig. 1 shows a block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a method of determining an avatar display range.
As shown in fig. 1, the computer terminal 100 includes a computing unit 101 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)102 or a computer program loaded from a storage unit 108 into a Random Access Memory (RAM) 103. In the RAM 103, various programs and data necessary for the operation of the computer terminal 100 can also be stored. The computing unit 101, the ROM 102, and the RAM 103 are connected to each other via a bus 104. An input/output (I/O) interface 105 is also connected to bus 104.
A number of components in the computer terminal 100 are connected to the I/O interface 105, including: an input unit 106 such as a keyboard, a mouse, and the like; an output unit 107 such as various types of displays, speakers, and the like; a storage unit 108, such as a magnetic disk, optical disk, or the like; and a communication unit 109 such as a network card, modem, wireless communication transceiver, etc. The communication unit 109 allows the computer terminal 100 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
Computing unit 101 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 101 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 101 performs the method of determining the avatar display range described herein. For example, in some embodiments, the method of determining the avatar display range may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 108. In some embodiments, part or all of the computer program may be loaded and/or installed onto the computer terminal 100 via the ROM 102 and/or the communication unit 109. When the computer program is loaded into the RAM 103 and executed by the computing unit 101, one or more steps of the method of determining the avatar display range described herein may be performed. Alternatively, in other embodiments, the computing unit 101 may be configured to perform the method of determining the avatar display range in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here can be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
It should be noted here that in some alternative embodiments, the electronic device shown in fig. 1 may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 1 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in the electronic device described above.
In the above operating environment, the present disclosure provides a method of determining an avatar display range as shown in fig. 2, which may be performed by a computer terminal or similar electronic device as shown in fig. 1. Fig. 2 is a flowchart of a method for determining an avatar display range according to an embodiment of the present disclosure. As shown in fig. 2, the method may include the steps of:
step S21, responding to the shooting operation executed by the electronic equipment to the target object, entering a first display interface, wherein the display content in the first display interface at least partially comprises the virtual image corresponding to the target object;
the electronic device may be a mobile terminal with a shooting function, such as a mobile phone or a tablet.
The target object can be any one or more of real characters, animals, cartoon characters and animals.
The display content in the first display interface may partially include an avatar corresponding to the target object, or may completely include an avatar corresponding to the target object. For example, an avatar corresponding to the head of the real person may be displayed on the first display interface, and an avatar corresponding to the whole body of the real person may also be displayed on the first display interface.
Step S22, obtaining the distance between the target object and the electronic equipment;
optionally, the distance between the target object and the electronic device is acquired in real time by using an electronic device ranging sensor. For example, after responding to a shooting operation performed on a real person by a mobile phone, a sensor such as a mobile phone camera is turned on, and the distance between the face of the person and the screen of the mobile phone is measured in real time.
In step S23, the display range of the avatar is determined based on the distance.
The display range of the avatar may correspond to display content in the first display interface, and at least partially include the avatar corresponding to the target object.
Alternatively, the display range of the avatar is determined based on the comparison result of the distance with a preset threshold. The corresponding relationship between the comparison result and the display range may be predefined.
Specifically, the implementation process of determining the display range of the avatar based on the distance may refer to further descriptions of the embodiments of the present disclosure.
According to the present disclosure, the method includes the steps S21 to S23, entering a first display interface by responding to a shooting operation performed on a target object by an electronic device, wherein display contents in the first display interface at least partially include an avatar corresponding to the target object; obtaining the distance between a target object and the electronic equipment; the display range of the virtual image is determined based on the distance, the purpose of conveniently and intelligently displaying the virtual image is achieved, the operation process of checking the virtual image by a user is simplified, and the effect of effectively improving the user experience is achieved, so that the technical problems that the operation step of checking the virtual image by the existing scheme is complicated and the user experience is poor are solved.
The method of determining the avatar display range of the above embodiment is further described below.
As an alternative embodiment, the determining the display range of the avatar based on the distance at step S23 includes: and responding to the distance exceeding a preset threshold value, and determining a first display range for displaying the virtual image in the first display interface, wherein the first display range is an integral display range corresponding to the virtual image.
For example, the preset threshold is set to be 20 cm, and when the distance between the human face and the mobile phone screen is greater than 20 cm, it is determined that the avatar corresponding to the whole body of the real person is displayed in the first display interface.
As an alternative embodiment, the determining the display range of the avatar based on the distance at step S23 includes: and in response to the distance not exceeding the preset threshold value, determining a second display range for displaying the virtual image in the first display interface, wherein the second display range is a local display range corresponding to the virtual image.
For example, the preset threshold is set to be 20 cm, and when the distance between the human face and the mobile phone screen is identified by the mobile phone camera sensor to be less than or equal to 20 cm, it is determined that the avatar corresponding to the head of the real person is displayed in the first display interface. When the distance between the human face and the mobile phone screen is smaller and smaller, the virtual image corresponding to the head of the real person in the first display interface is larger and larger.
By comparing the distance between the target object and the electronic equipment with a preset threshold value, the display range of the virtual image corresponding to the target object is further determined, the whole range and the local range of the displayed virtual image can be rapidly switched, and the operation flow for viewing different display ranges of the virtual image is effectively simplified. Meanwhile, the virtual image is intelligently displayed according to the change of the distance, and the interaction experience of a user when the user uses the virtual image application can be effectively improved.
As an optional implementation, the method for determining the avatar display range further includes:
step S24, responding to the first touch operation acted on the virtual image, and determining a target part to be adjusted in the virtual image;
the first touch operation may include any one of operations of clicking, double-clicking, long-pressing, sliding and the like on a target portion to be adjusted of the virtual image in the first display interface by the user.
And step S25, switching from the first display interface to a second display interface, wherein the second display interface is an editing interface of the target part.
The second display interface is an editing interface of the target part, and the editing interface may include a plurality of editing options corresponding to the attributes of the target part. And each editing option comprises corresponding data to be edited, and the target part can be adjusted by adjusting the data to be edited in each editing option.
For example, when a first display range for displaying the avatar is determined in the first display interface, the avatar corresponding to the whole body of the real person may be displayed on the first display interface, the eyebrow of the avatar is double-clicked, and after the target portion to be adjusted is determined to be the eyebrow of the avatar, the second display interface is switched from the first display interface to the second display interface, which is an editing interface for the eyebrow of the avatar, and the editing interface includes a plurality of editing options corresponding to the eyebrow, such as the shape, length, color, and the like of the eyebrow.
As an optional implementation, the method for determining the avatar display range further includes:
in step S26, the display content of the target portion is adjusted in response to the second touch operation applied to the editing interface.
The second touch operation may include any one of operations of clicking, double-clicking, long-pressing, sliding and the like on the editing option of the target portion in the second display interface by the user.
For example, after determining that the target portion to be adjusted is an eyebrow of the avatar, switching from the first display interface to a second display interface, where the second display interface is an editing interface of the eyebrow of the avatar, and the editing interface includes a plurality of editing options corresponding to the eyebrow, including: the shape, length, color, etc. of the eyebrows. And clicking the editing option corresponding to the shape of the eyebrow, displaying a selection panel comprising a plurality of eyebrow shapes, such as an A shape, a B shape and a C shape, in the second display interface, clicking the A shape in the selection panel, and adjusting the shape of the eyebrow of the virtual image into the A shape. And clicking the editing option corresponding to the length of the eyebrow, displaying the eyebrow length numerical value strip in the second display interface, dragging and adjusting the eyebrow length numerical value strip, and adjusting the eyebrow length of the virtual image to the eyebrow length corresponding to the numerical value strip.
Specifically, when the target portion is another portion of the avatar, the process of adjusting the display content of the target portion in response to the second touch operation applied to the editing interface may refer to the above-mentioned process of adjusting the eyebrows of the avatar, which is not described in detail,
as an optional implementation, the display content includes at least one of: size of the target site, color of the target site, transparency of the target site, decoration of the target site.
For example, when the target portion is hair of an avatar, the display contents may include: hairstyles, hair colors, and decorations on the hair.
For another example, when the target portion is the mouth of the avatar, the display content may include: lip shape, lip color, mouth shape, etc.
For another example, when the target portion is clothes of an avatar, the display contents may include: style, size, color, decoration, etc. of the garment.
For another example, when the target region is the stature of the avatar, the display content may include: height, leg length, body type, etc.
For example, when the target portion is an avatar gesture, a facial expression, or a background, the corresponding adjustment options and display contents correspond to the attribute of the target portion, which is not described in detail.
It should be noted that the description of the target portion and the display content in the present disclosure is only an example, and the specific implementation may also be flexibly increased, decreased, and adjusted according to the actual requirement, and the embodiments of the present disclosure do not constitute a specific limitation.
The method comprises the steps of entering a first display interface by responding to a shooting operation performed on a target object by electronic equipment, wherein display content in the first display interface at least partially comprises an avatar corresponding to the target object; obtaining the distance between a target object and the electronic equipment; the display range of the virtual image is determined based on the distance, the purpose of conveniently and intelligently displaying the virtual image is achieved, the operation process of checking the virtual image by a user is simplified, and the effect of effectively improving the user experience is achieved, so that the technical problems that the operation step of checking the virtual image by the existing scheme is complicated and the user experience is poor are solved.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the methods according to the embodiments of the present disclosure.
The present disclosure further provides a device for determining a display range of an avatar, which is used to implement the foregoing embodiments and preferred embodiments, and the description of the device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram illustrating a structure of an apparatus for determining an avatar display range according to an embodiment of the present disclosure, and as shown in fig. 3, an apparatus 300 for determining an avatar display range includes: a display module 301, an acquisition module 302 and a determination module 303.
The display module 301 is configured to enter a first display interface in response to a shooting operation performed on a target object by an electronic device, where display content in the first display interface at least partially includes an avatar corresponding to the target object;
an obtaining module 302, configured to obtain a distance between a target object and an electronic device;
a determining module 303, configured to determine a display range of the avatar based on the distance.
Optionally, the determining module 303 is configured to determine the display range of the avatar based on the distance, and includes: and responding to the distance exceeding a preset threshold value, and determining a first display range for displaying the virtual image in the first display interface, wherein the first display range is an integral display range corresponding to the virtual image.
Optionally, the determining module 303 is configured to determine the display range of the avatar based on the distance, and includes: and in response to the distance not exceeding the preset threshold value, determining a second display range for displaying the virtual image in the first display interface, wherein the second display range is a local display range corresponding to the virtual image.
Optionally, the determining module 303 is further configured to determine a target portion to be adjusted in the avatar in response to a first touch operation applied to the avatar; the apparatus 300 for determining an avatar display range further includes: the switching module 304 is configured to switch from the first display interface to a second display interface, where the second display interface is an editing interface of the target portion.
Optionally, the apparatus 300 for determining the avatar display range further includes: the adjusting module 305 is configured to adjust the display content of the target portion in response to the second touch operation applied to the editing interface.
Optionally, the display content comprises at least one of: size of the target site, color of the target site, transparency of the target site, decoration of the target site.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
According to an embodiment of the present disclosure, there is also provided an electronic device including a memory having stored therein computer instructions and at least one processor configured to execute the computer instructions to perform the steps in any of the above method embodiments.
Optionally, the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present disclosure, the processor may be configured to execute the following steps by a computer program:
s1, responding to the shooting operation executed by the electronic equipment on the target object, entering a first display interface, wherein the display content in the first display interface at least partially comprises the virtual image corresponding to the target object;
s2, acquiring the distance between the target object and the electronic equipment;
s3, determining a display range of the avatar based on the distance.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
According to an embodiment of the present disclosure, there is also provided a non-transitory computer readable storage medium having stored therein computer instructions, wherein the computer instructions are arranged to perform the steps in any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned nonvolatile storage medium may be configured to store a computer program for executing the steps of:
s1, responding to the shooting operation executed by the electronic equipment on the target object, entering a first display interface, wherein the display content in the first display interface at least partially comprises the virtual image corresponding to the target object;
s2, acquiring the distance between the target object and the electronic equipment;
s3, determining a display range of the avatar based on the distance.
Alternatively, in the present embodiment, the non-transitory computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The present disclosure also provides a computer program product according to an embodiment of the present disclosure. Program code for implementing the audio processing methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the above embodiments of the present disclosure, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present disclosure, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
The foregoing is merely a preferred embodiment of the present disclosure, and it should be noted that modifications and embellishments could be made by those skilled in the art without departing from the principle of the present disclosure, and these should also be considered as the protection scope of the present disclosure.

Claims (10)

1. A method of determining an avatar display range, comprising:
responding to a shooting operation performed on a target object by electronic equipment, and entering a first display interface, wherein display content in the first display interface at least partially contains an avatar corresponding to the target object;
acquiring the distance between the target object and the electronic equipment;
determining a display range of the avatar based on the distance.
2. The method of claim 1, wherein determining a display range of the avatar based on the distance comprises:
and responding to the fact that the distance exceeds a preset threshold value, and determining a first display range for displaying the virtual image in the first display interface, wherein the first display range is an integral display range corresponding to the virtual image.
3. The method of claim 1, wherein determining a display range of the avatar based on the distance comprises:
and determining a second display range for displaying the virtual image in the first display interface in response to the distance not exceeding a preset threshold, wherein the second display range is a local display range corresponding to the virtual image.
4. The method of claim 1, further comprising:
responding to a first touch operation acting on the virtual image, and determining a target part to be adjusted in the virtual image;
and switching from the first display interface to a second display interface, wherein the second display interface is an editing interface of the target part.
5. The method of claim 4, further comprising:
and responding to a second touch operation acting on the editing interface, and adjusting the display content of the target part.
6. The method of claim 5, wherein the display content comprises at least one of: a size of the target portion, a color of the target portion, a transparency of the target portion, a decoration of the target portion.
7. An apparatus for determining a display range of an avatar, comprising:
the display module is used for responding to shooting operation executed on a target object by electronic equipment and entering a first display interface, wherein display content in the first display interface at least partially comprises an avatar corresponding to the target object;
the acquisition module is used for acquiring the distance between the target object and the electronic equipment;
a determination module for determining a display range of the avatar based on the distance.
8. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
9. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-6.
CN202111088204.1A 2021-09-16 2021-09-16 Method for determining virtual image display range, electronic device and storage medium Pending CN113805701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111088204.1A CN113805701A (en) 2021-09-16 2021-09-16 Method for determining virtual image display range, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111088204.1A CN113805701A (en) 2021-09-16 2021-09-16 Method for determining virtual image display range, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN113805701A true CN113805701A (en) 2021-12-17

Family

ID=78941339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111088204.1A Pending CN113805701A (en) 2021-09-16 2021-09-16 Method for determining virtual image display range, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113805701A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023160196A1 (en) * 2022-02-22 2023-08-31 Oppo广东移动通信有限公司 Content display method and apparatus, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106774937A (en) * 2017-01-13 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Image interactive method and its device in a kind of augmented reality
CN106896940A (en) * 2017-02-28 2017-06-27 杭州乐见科技有限公司 Virtual objects are presented effect control method and device
CN108495032A (en) * 2018-03-26 2018-09-04 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN113325983A (en) * 2021-06-30 2021-08-31 广州酷狗计算机科技有限公司 Virtual image processing method, device, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106774937A (en) * 2017-01-13 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Image interactive method and its device in a kind of augmented reality
CN106896940A (en) * 2017-02-28 2017-06-27 杭州乐见科技有限公司 Virtual objects are presented effect control method and device
CN108495032A (en) * 2018-03-26 2018-09-04 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN113325983A (en) * 2021-06-30 2021-08-31 广州酷狗计算机科技有限公司 Virtual image processing method, device, terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023160196A1 (en) * 2022-02-22 2023-08-31 Oppo广东移动通信有限公司 Content display method and apparatus, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN106936995B (en) A kind of control method, device and the mobile terminal of mobile terminal frame per second
US20230128505A1 (en) Avatar generation method, apparatus and device, and medium
CN113359995B (en) Man-machine interaction method, device, equipment and storage medium
EP3917131A1 (en) Image deformation control method and device and hardware device
CN105657249A (en) Image processing method and user terminal
CN109003224A (en) Strain image generation method and device based on face
CN108875594B (en) Face image processing method, device and storage medium
CN104461545B (en) Content in mobile terminal is provided to the method and device of user
CN109698914A (en) A kind of lightning special efficacy rendering method, device, equipment and storage medium
CN106919326A (en) A kind of image searching method and device
CN113421204A (en) Image processing method and device, electronic equipment and readable storage medium
CN105739936B (en) A kind of user terminal control method and user terminal
CN113805701A (en) Method for determining virtual image display range, electronic device and storage medium
CN108985215B (en) Picture processing method, picture processing device and terminal equipment
CN111597009B (en) Application program display method and device and terminal equipment
US20190371039A1 (en) Method and smart terminal for switching expression of smart terminal
CN108629767B (en) Scene detection method and device and mobile terminal
CN107831890A (en) Man-machine interaction method, device and equipment based on AR
CN112860068A (en) Man-machine interaction method, device, electronic equipment, medium and computer program product
CN113808007B (en) Method and device for adjusting virtual face model, electronic equipment and storage medium
CN115359171B (en) Virtual image processing method and device, electronic equipment and storage medium
EP4209928A2 (en) Method, apparatus and system for processing makeup, electronic device and storage medium
CN109643143B (en) Providing sensing capability through a wireless communication device
CN113327311B (en) Virtual character-based display method, device, equipment and storage medium
CN108960213A (en) Method for tracking target, device, storage medium and terminal

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