WO2020253295A1 - Control method and apparatus, and terminal device - Google Patents

Control method and apparatus, and terminal device Download PDF

Info

Publication number
WO2020253295A1
WO2020253295A1 PCT/CN2020/080689 CN2020080689W WO2020253295A1 WO 2020253295 A1 WO2020253295 A1 WO 2020253295A1 CN 2020080689 W CN2020080689 W CN 2020080689W WO 2020253295 A1 WO2020253295 A1 WO 2020253295A1
Authority
WO
WIPO (PCT)
Prior art keywords
scene
type
user
target scene
rotation
Prior art date
Application number
PCT/CN2020/080689
Other languages
French (fr)
Chinese (zh)
Inventor
章捷彬
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2020253295A1 publication Critical patent/WO2020253295A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/20Details of telephonic subscriber devices including a rotatable camera

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to a control method, device and terminal equipment.
  • a specific operation effect can be achieved in a specific area of the screen.
  • a user uses a full-screen mobile phone to watch a video, he can swipe up or down in a specific area of the screen (such as the left side of the screen) to control the volume to increase or decrease.
  • a full-screen mobile phone to take an image in the image preview box, the user can control the focal length of the camera to increase or decrease by using two-finger telescopic sliding operations on the screen.
  • the terminal device may not respond to the user's operation.
  • the terminal device May overreact to user actions. For example, when a user is watching a video, there may be a large swipe operation of the finger on the screen, which causes the volume of the video playback to increase rapidly, which brings very bad consequences to the user’s hearing, or the user is
  • shooting images there may also be cases where the preview image is suddenly zoomed in/out due to the too large/too small sliding range of the telescopic sliding operation. In order to achieve a better use effect, the user needs to perform multiple operations , The efficiency of terminal control is low.
  • the purpose of the embodiments of the present disclosure is to provide a control method, device, and equipment to solve the problem of low terminal control efficiency caused by the user needing to perform multiple operations on the screen in order to achieve better use effects in related technologies. .
  • an embodiment of the present disclosure provides a control method, which is applied to a terminal device equipped with a rotatable camera, and the method includes:
  • receiving a user's rotation operation on the rotatable camera includes:
  • the current scene is the target scene
  • the rotation operation of the rotatable camera by the user is monitored by the predetermined sensor.
  • the determining an operation event corresponding to the target scene and the rotation operation based on the target scene includes:
  • the execution of the operation event includes:
  • the operation event is executed.
  • the determining operation parameters for executing the operation event based on the rotation operation and the operation type includes:
  • the preset conversion relationship Determining a preset conversion relationship corresponding to the operation type based on the operation type, the preset conversion relationship being determined based on data obtained by the predetermined sensor monitoring the rotation of the rotatable camera;
  • an operating parameter for executing the operating event is determined.
  • the determining the operation type of the operation event corresponding to the scene type based on the scene type to which the target scene belongs includes:
  • the operation type of the operation event is determined.
  • an embodiment of the present disclosure provides a control method, which is applied to a terminal device equipped with a retractable camera, and the method includes:
  • the current scene is the target scene
  • receiving a user's telescopic operation of the telescopic camera where the telescopic operation includes the distance extended or shortened by the telescopic camera
  • an embodiment of the present disclosure provides a control device configured with a rotatable camera, and the device includes:
  • the operation receiving module is configured to receive a rotation operation of the rotatable camera by the user when the current scene is the target scene, wherein the rotation operation includes a rotation angle and/or a rotation direction;
  • a first determining module configured to determine an operation event corresponding to the target scene and the rotation operation based on the target scene
  • the first execution module is used to execute the operation event.
  • the operation receiving module includes:
  • An activation unit configured to activate a predetermined sensor and the rotatable camera when the current scene is the target scene
  • the operation monitoring unit is configured to monitor the rotation operation of the rotatable camera by the user through the predetermined sensor.
  • the first determining module includes:
  • the type obtaining unit is configured to obtain the scene type to which the target scene belongs;
  • a type determining unit configured to determine the operation type of the operation event corresponding to the scene type based on the scene type to which the target scene belongs;
  • a parameter determination unit configured to determine an operation parameter for executing the operation event based on the rotation operation and the operation type
  • the event execution module is used to:
  • the operation event is executed.
  • the executing the operation event based on the operation parameter and the operation type includes:
  • the focus adjustment is performed on the preview image acquired based on the rear camera.
  • the parameter determining unit is configured to:
  • the preset conversion relationship Determining a preset conversion relationship corresponding to the operation type based on the operation type, the preset conversion relationship being determined based on data obtained by the predetermined sensor monitoring the rotation of the rotatable camera;
  • an operating parameter for executing the operating event is determined.
  • the type determining unit is configured to:
  • the operation type of the operation event is determined.
  • an embodiment of the present disclosure provides a control device, the device is configured with a retractable camera, and the device includes:
  • the telescopic monitoring module is configured to receive a user's telescopic operation on the telescopic camera when the current scene is the target scene, wherein the telescopic operation includes the distance extended or shortened by the telescopic camera;
  • a second determining module configured to determine an operation event corresponding to the target scene and the scaling operation based on the target scene
  • the second execution module is used to execute the operation event.
  • the embodiments of the present disclosure provide a terminal device, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • a terminal device including a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • the computer program is executed by the processor, The steps of the control method provided in the first aspect are implemented.
  • embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method provided in the first aspect are implemented.
  • embodiments of the present disclosure provide a terminal device, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor. Implement the steps of the control method provided in the second aspect above.
  • embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method provided in the second aspect are implemented.
  • the embodiments of the present disclosure receive a user's rotation operation on a rotatable camera when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction, Then, based on the target scene, the operation event corresponding to the target scene and the rotation operation is determined, and the operation event is executed.
  • the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal.
  • it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
  • Figure 1 is an embodiment of a control method of the present disclosure
  • FIG. 2 is a schematic diagram of a method for determining an operation based on a rotation angle of the present disclosure
  • Figure 3 is an embodiment of another control method of the present disclosure.
  • FIG. 4 is a schematic diagram of another method of determining an operation based on a rotation angle of the present disclosure
  • Figure 5 is another embodiment of the control method of the present disclosure.
  • FIG. 6 is another embodiment of the control method of the present disclosure.
  • Figure 7 is an embodiment of a control device of the present disclosure
  • Figure 8 is an embodiment of a control device of the present disclosure
  • Fig. 9 is an embodiment of a terminal device of the present disclosure.
  • the embodiments of the present disclosure provide a control method, device and terminal equipment.
  • an embodiment of the present disclosure provides a control method.
  • the execution subject of the method may be a terminal device, where the terminal device is equipped with a rotatable camera, and the terminal device may be a device such as a personal computer or Such as mobile terminal devices such as mobile phones and tablet computers, the terminal device may be a terminal device used by the user.
  • the method may specifically include the following steps:
  • step S102 when the current scene is the target scene, receiving the user's rotation operation on the rotatable camera,
  • the target scene can be a shooting scene (including image shooting scenes or video shooting scenes, etc.), image viewing scenes, video playback scenes, reading scenes, display parameter setting scenes, etc.
  • the rotation operation can include rotation angle and/or rotation direction .
  • the terminal device may not respond to the user's operation.
  • the terminal device May overreact to user actions. For example, when a user is watching a video, there may be a large swipe operation of the finger on the screen, which causes the volume of the video playback to increase rapidly, which brings very bad consequences to the user’s hearing, or the user is
  • shooting images there may also be cases where the preview image is suddenly zoomed in/out due to the too large/too small sliding range of the telescopic sliding operation. In order to achieve a better use effect, the user needs to perform multiple operations , The efficiency of terminal control is low.
  • the embodiments of the present disclosure provide a technical solution that can solve the above-mentioned problems, which may specifically include the following content:
  • the terminal device can monitor the user's use of the terminal device. If the current scene is the target scene, it can turn on the rotatable camera and receive the user's rotation operation on the rotatable camera. For example, after starting the terminal device, the user can click on the image capture application. At this time, the terminal device can detect that the current scene is the image/video shooting scene (that is, the current scene is the target scene), and the terminal device can start the rotatable camera and receive The user's rotation operation of the rotatable camera.
  • the rotatable camera can be hidden in the terminal device.
  • the terminal device can control the rotatable camera to extend from the terminal device, so that the user can rotate the rotatable camera.
  • the rotatable camera can be on the side of the terminal device and can be equipped with physical buttons. If the terminal device detects that the current scene is the target scene, the physical button can be activated. At this time, the user can click or double-click on the physical button To activate the rotatable camera, and then the user can rotate the extended rotatable camera.
  • the terminal device can turn off the rotatable camera (that is, retract the rotatable camera to the terminal). Inside the device).
  • the rotatable camera can be turned on again, and the user's rotation operation on the rotatable camera can be received. For example, if the video playback scene is the target scene and the preset time range is 2 minutes, when the terminal device detects that the user opens the video playback application and clicks on video 1 to watch, the terminal device can turn on the rotatable camera (that is, control the rotatable The camera extends from the terminal device).
  • the terminal device can close the rotatable camera (that is, retract the rotatable camera into the terminal device). If the user needs to perform a rotation operation on the rotatable camera, the user can control the terminal device to start the rotatable camera through a preset use instruction, where the preset use instruction may be to perform a predetermined operation in a predetermined area of the screen (such as on the left side of the screen). (Double-click operation on the side), or, the preset use instruction may also be a predetermined operation on a physical button configured on the terminal device (such as double-clicking the volume amplification button).
  • step S104 based on the target scene, an operation event corresponding to the target scene and the rotation operation is determined.
  • the operation event corresponding to the target scene and the rotation operation can be determined according to the preset correspondence relationship.
  • the target scene may include an image shooting scene, a video playback scene, and a reading scene.
  • the rotation operation may include a first rotation operation that rotates clockwise, and a second rotation operation that rotates counterclockwise, based on a preset corresponding
  • the relationship (such as the preset corresponding relationship shown in Table 1) can determine the operation events corresponding to different rotation operations in different target scenarios.
  • Target scene Rotate operation Operation event Image shooting scene First rotation operation
  • Zoom event Image shooting scene Second rotation operation Focus reduction event
  • Video playback scene Second rotation operation Volume down event Reading scene First rotation operation
  • the operation events corresponding to different rotation operations in different target scenarios can be determined. For example, if the target scene is a video playback scene, the terminal device can determine whether it is a volume increase event or a volume decrease event according to the user's rotation direction of the rotatable camera. If the user can rotate the rotatable camera in a clockwise direction (that is, the rotation operation is the first rotation), the corresponding operation event may be a volume increase event. Then you can determine the corresponding volume adjustment range according to the user's rotation angle of the rotatable camera.
  • the corresponding volume adjustment range can be 5.
  • the volume corresponding to the initial position when the rotatable camera is extended may be the real-time volume in the current scene.
  • the operation event corresponding to the target scene can also be determined according to the user's rotation angle of the rotatable camera. For example, you can set the scales corresponding to different rotation angles based on the initial position when the rotatable camera extends from the terminal device. As shown in Figure 2, the 0-180 degree clockwise in the initial position can correspond to 0 degree to 0 degree. 180 degrees, 0-180 degrees counterclockwise in the initial position can correspond to 0 degrees to -180 degrees. If the target scene is a reading scene and the user rotates the rotatable camera to a range of 0 degrees to 180 degrees, the corresponding operation event can be a font enlargement event, and the specific font enlargement can be determined according to the rotation angle. Conversely, if the user rotates the rotatable camera to a range of 0 degrees to -180 degrees, the corresponding operation event may be a font reduction event, and the specific font reduction range may also be determined according to the rotation angle.
  • the preview picture can be switched according to the rotation direction of the rotatable camera by the user. For example, when the user rotates the rotatable camera one frame in the clockwise direction, the terminal device can switch the currently displayed preview image to the next preview image for display. If the user rotates the rotatable camera one frame in the counterclockwise direction, then The terminal device can switch the currently displayed preview image to the previous preview image for display.
  • the rotatable camera configured in the terminal device may also have a telescopic function.
  • the corresponding operation event can be determined according to the telescopic distance of the rotatable camera and the rotation operation of the user. For example, after the terminal device starts the rotatable camera, the rotatable camera automatically extends from the terminal device and is fixed at a position 1cm away from the terminal device.
  • the user can adjust the rotatable camera from a position 1cm away from the terminal device to the distance
  • the terminal device can determine the corresponding operation event based on the preset telescopic operation relationship according to the distance between the rotatable camera and the terminal device that is finally monitored. For example, when the target scene is a reading scene, the user can adjust the distance between the rotatable camera and the terminal device from 1cm to 0.5cm, and it can be determined that the operation corresponding to the target scene can be a font increase event. For the rotation operation of the rotatable camera, determine the corresponding font increase.
  • step S106 an operation event is executed.
  • the rotatable camera can be turned off (that is, the rotatable camera can be retracted into the terminal device), and it can be turned on again when a change in the target scene is detected or a user switching instruction is received
  • the camera can be rotated, and the operation event corresponding to the target scene at this time is determined according to the user's rotation operation, and the operation event is executed.
  • the embodiment of this specification provides a control method, by receiving a user's rotation operation on a rotatable camera when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction, and then determines based on the target scene The operation event corresponding to the target scene and the rotation operation is executed.
  • the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal.
  • it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
  • the embodiment of this specification provides a control method.
  • the execution subject of the method can be a terminal device.
  • the terminal device is equipped with a rotatable camera.
  • the terminal device can be a device such as a personal computer or Such as mobile terminal devices such as mobile phones and tablet computers, the terminal device may be a terminal device used by the user.
  • the method may specifically include the following steps:
  • step S302 when the current scene is the target scene, a predetermined sensor and a rotatable camera are activated.
  • the predetermined sensor may be an angle sensor, which may be used to monitor the rotation operation of the rotatable camera by the user.
  • step S304 the user's rotation operation of the rotatable camera is monitored through a predetermined sensor.
  • the user's rotation angle and/or rotation direction of the rotatable camera can be monitored through a predetermined sensor. If the predetermined sensor does not detect the user's rotation operation of the rotatable camera within the preset time range, the predetermined sensor and the rotatable camera can be turned off, and the predetermined sensor and the rotatable camera can be turned on again when the user's preset instruction is received. The camera can be rotated.
  • step S306 the scene type to which the target scene belongs is acquired.
  • the scene type can include volume adjustment type, focus adjustment type, font adjustment type, brightness adjustment type, contrast adjustment type, color temperature adjustment type, picture/video preview switching type, etc.
  • the operation event can be an event relative to the target scene. Including event type, operation parameters, etc., for example, the operation event may be a volume increase event (including a corresponding volume adjustment range), a font reduction event (including a corresponding font adjustment range), a picture preview switching event, etc.
  • users can set different target scenes to correspond to different scene types, where the scene types can include volume adjustment type, focus adjustment type, font adjustment type, brightness adjustment type, contrast adjustment type, color temperature adjustment type, picture /Video preview switching type, etc.
  • the scene types can include volume adjustment type, focus adjustment type, font adjustment type, brightness adjustment type, contrast adjustment type, color temperature adjustment type, picture /Video preview switching type, etc.
  • Table 2 for different target scenes, the user can set different or the same scene type, and when the current scene is detected as the target scene, the scene type to which the target scene belongs can be obtained.
  • the terminal device detects that the user is using a reading application for text reading, it can determine that the current scene is a reading scene, and the corresponding scene type can be a font adjustment scene, that is, the scene type to which the target scene belongs is a font adjustment type.
  • Target scene Scene type Video playback scene Volume adjustment type Video preview scene Volume adjustment type Image shooting scene Focus adjustment type Video shooting scene Brightness adjustment type Reading scene Font adjustment type
  • the user with an input selection box of the scene type according to the received user's predetermined switching instruction, so that the user can switch the scene type to which the target scene belongs.
  • the predetermined switching instruction may be to double-click the power button.
  • the scene type to which the current scene belongs can be determined as the font adjustment type. If the user does not need to adjust the font at this time, the user can double-click the power button.
  • the terminal device After receiving the preset switching instruction, the terminal device can provide the user with an input selection box on the screen, and the user can select the corresponding scene according to actual needs Type (for example, the user can change the scene type to which the target scene belongs to the brightness adjustment type). After the user selects the scene type that needs to be switched, the terminal device can prompt the user whether to save the scene type, and assign the target scene according to the scene type.
  • the scene types are updated.
  • step S308 the operation type of the operation event corresponding to the scene type is determined based on the scene type to which the target scene belongs.
  • the operation type of the operation event may correspond to the scene type, for example, the operation type of the operation event may be volume adjustment type, focus adjustment type, font adjustment type, brightness adjustment type, contrast adjustment type, color temperature adjustment type, picture/ Video preview switching type, etc.
  • step S308 can be processed in a variety of ways, and an optional implementation method is provided below.
  • steps 1 and 2 please refer to the following steps 1 and 2 for processing.
  • Step 1 Receive a user's input operation on the operation type of the operation event corresponding to the scene type to which the target scene belongs.
  • the user can be provided with an input selection box, and the user can select the operation type of the operation event according to actual needs.
  • the terminal device detects that the user has opened a video playback application and selected a video to play. Before or during video playback, the terminal device can display an input selection box on the screen.
  • the input selection box can contain "volume With the labels of "adjust”, “brightness adjustment”, and "color temperature adjustment”, the user can select the operation type of the currently required operation event in the input selection box, for example, the user can select "color temperature adjustment”.
  • the terminal device can adjust the color temperature as the operation type of the operation event corresponding to the video playback scene, without Provide the user with an input selection box for the operation type again.
  • the terminal device can perform a preset operation on the preset button to restart the input function of the operation type of the operation event, that is, the terminal device can The user's input operation on the actual operation type corresponding to the scene type to which the target scene belongs is received again.
  • Step 2 Determine the operation type of the operation event based on the input operation.
  • step S310 based on the rotation operation and the operation type, an operation parameter for executing the operation event is determined.
  • step S310 can be processed in various ways, and an optional implementation method is provided below. For details, refer to the following steps 1 to 3 for processing.
  • Step 1 Determine the preset conversion relationship corresponding to the operation type based on the operation type.
  • the preset conversion relationship may be determined based on data obtained by monitoring the rotation of the rotatable camera by a predetermined sensor.
  • different operation types may correspond to different preset conversion relationships, and at the same time, the preset conversion relationships corresponding to data obtained by different rotation operations may also be different.
  • the preset conversion relationship corresponding to the volume adjustment type may be the conversion relationship between the data corresponding to the rotation angle and the volume adjustment range
  • the preset conversion relationship corresponding to the font adjustment type may be the conversion relationship between the data corresponding to the rotation angle and the font adjustment range. Relationship and so on.
  • the initial position of the rotatable camera extending out of the terminal device is taken as the origin, and the arrangement is clockwise from 0° to 360 degrees, the corresponding preset conversion relationship can be preset conversion relationship 1.
  • the initial position of the rotatable camera extending out of the terminal device is taken as the origin, within the range of 180 degrees in the clockwise direction , The arrangement is from 0 degrees to 180 degrees, and within the range of 180 degrees in the counterclockwise direction, from 0 degrees to -180 degrees, the corresponding preset conversion relationship may be preset conversion relationship 2.
  • Step 2 Determine the first operating parameter corresponding to the rotation angle based on the preset conversion relationship.
  • the preset conversion relationship corresponding to the above-mentioned volume adjustment type as an example, as shown in FIG. 4, in FIG. 4(a), based on the preset conversion relationship 1, different first operations can be converted for different degrees
  • the parameter for example, rotates 1 degree in the clockwise direction, based on the preset conversion relationship 1, the corresponding first operating parameter can be 4 grids.
  • different first operating parameters can be converted to different degrees. For example, if you rotate 1 degree in the counterclockwise direction, then based on the preset conversion relationship 1, the corresponding The first operating parameter of can be -1 grid.
  • Step 3 Determine the operation parameter for executing the operation event based on the first operation parameter and/or the rotation direction.
  • the operating parameter used to perform the operating event can be determined based on the first operating parameter. For example, taking the preset conversion relationship corresponding to the above-mentioned volume adjustment type as an example, in Figure 4(b), if the first If the parameter is -1 division, it can be determined that the operation parameter used to execute the operation event is -1 division, that is, the volume is reduced by one division.
  • the operation parameter for executing the operation event may also be determined. Take the preset conversion relationship corresponding to the above-mentioned volume adjustment type as an example. In Figure 4(a), if the user's rotation direction is clockwise and the first operation parameter is 4 bars, the operation parameter used to execute the operation event It can be 4 bars, that is, increase the volume by 4 bars.
  • the operating parameters used to execute the operating event can also be determined.
  • the operation event may be a picture switching preview event, and if the rotation direction is clockwise, the corresponding operation parameter may be obtaining the previous preview image.
  • the rotatable camera configured in the terminal device can be a front camera, and the terminal device can also be configured with a rear camera. If the scene type of the target scene belongs to a shooting scene (including a picture shooting scene or a video shooting scene, you can The operation type of the operation event corresponding to the shooting scene is determined to be focus adjustment. Based on the above steps 1 to 3, the operation parameters for adjusting the focus of the rear camera can be determined.
  • the focus adjustment is performed on the preview image acquired based on the rear camera.
  • step S312 an operation event is executed based on the operation parameter and the operation type.
  • the embodiment of this specification provides a control method, by receiving a user's rotation operation on a rotatable camera when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction, and then determines based on the target scene The operation event corresponding to the target scene and the rotation operation is executed.
  • the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal.
  • it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
  • the execution subject of the method may be a terminal device.
  • the terminal device is equipped with a retractable camera.
  • the terminal device may be a device such as a personal computer or Such as mobile terminal devices such as mobile phones and tablet computers, the terminal device may be a terminal device used by the user.
  • the method may specifically include the following steps:
  • step S502 if the current scene is the target scene, the user's telescopic operation on the telescopic camera is received.
  • the telescopic operation may include the distance extended or shortened by the telescopic camera.
  • the retractable camera when the current scene is the target scene, can be turned on, extend the retractable camera from the terminal device, and receive the user's telescopic operation on the retractable camera.
  • the extension or shortening distance of the retractable camera may be the distance difference between the final position of the user moving the retractable camera and the initial position when the retractable camera extends from the terminal device.
  • step S504 based on the target scene, an operation event corresponding to the target scene and the scaling operation is determined.
  • the user can set different target scenes corresponding to different scene types, and for different scene types, the corresponding operation events can be determined according to the scaling operation.
  • the target scene may be an image shooting scene
  • the corresponding scene type may be a focus adjustment type or a brightness adjustment type.
  • the corresponding operation event may be determined.
  • the received telescopic operation may be to extend the retractable camera by one level (one level may be 0.5 cm), and the corresponding operation event may be to enlarge the focus by one division or increase the brightness by one level.
  • the corresponding operation event may be to reduce the focal length by one division, or reduce the brightness by one level.
  • step S506 an operation event is executed.
  • the retractable camera can be turned off (that is, the retractable camera can be retracted into the terminal device), and it can be turned on again when a change in the target scene is detected or a user switching instruction is received
  • the telescopic camera determines the operation event corresponding to the target scene at this time according to the user's telescopic operation, and executes the operation event.
  • the embodiment of this specification provides a control method by receiving a user's telescopic operation on a telescopic camera when the current scene is the target scene, where the telescopic operation includes the extension or shortening distance of the telescopic camera, and then based on the target scene , Determine the operation event corresponding to the target scene and scaling operation, and execute the operation event.
  • the user only needs to perform telescopic operations on the retractable camera to control the terminal device to execute the corresponding operation event, without the need for repeated adjustment operations, which improves the control efficiency of the terminal.
  • it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
  • the execution subject of the method may be a terminal device.
  • the terminal device is equipped with a retractable camera.
  • the terminal device may be a device such as a personal computer or Such as mobile terminal devices such as mobile phones and tablet computers, the terminal device may be a terminal device used by the user.
  • the method may specifically include the following steps:
  • step S602 when the current scene is the target scene, the predetermined sensor and the retractable camera are activated.
  • the predetermined sensor may be an angle sensor, which may be used to monitor the telescopic operation of the telescopic camera by the user.
  • step S604 the user's telescopic operation of the telescopic camera is monitored through a predetermined sensor.
  • the telescopic operation includes the distance extended or shortened by the telescopic camera.
  • step S606 the scene type to which the target scene belongs is acquired.
  • step S608 the operation type of the operation event corresponding to the scene type is determined based on the scene type to which the target scene belongs.
  • step S610 based on the scaling operation and the operation type, an operation parameter for executing the operation event is determined.
  • step S612 an operation event is executed based on the operation parameter and the operation type.
  • the embodiment of this specification provides a control method, by receiving the user's telescopic operation on the telescopic camera when the current scene is monitored as the target scene, where the telescopic operation includes the extension or shortening distance of the telescopic camera, and then based on Target scene, determine the operation event corresponding to the target scene and scaling operation, and execute the operation event.
  • the user only needs to perform telescopic operations on the retractable camera to control the terminal device to execute the corresponding operation event, without the need for repeated adjustment operations, which improves the control efficiency of the terminal.
  • it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
  • the embodiment of this specification also provides a control device, as shown in FIG. 7.
  • the control device includes: an operation receiving module 701, a first determining module 702, and a first executing module 703, wherein:
  • the operation receiving module 701 is configured to receive a user's rotation operation on the rotatable camera when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction;
  • the first determining module 702 is configured to determine an operation event corresponding to the target scene and the rotation operation based on the target scene;
  • the first execution module 703 is configured to execute the operation event.
  • the operation receiving module 701 includes:
  • An activation unit configured to activate a predetermined sensor and the rotatable camera when the current scene is the target scene
  • the operation monitoring unit is configured to monitor the rotation operation of the rotatable camera by the user through the predetermined sensor.
  • the first determining module 702 includes:
  • the type obtaining unit is configured to obtain the scene type to which the target scene belongs;
  • the type determining unit is configured to determine the operation type of the operation event corresponding to the scene type based on the scene type to which the current scene belongs;
  • a parameter determination unit configured to determine an operation parameter for executing the operation event based on the rotation operation and the operation type
  • the event execution module is used to:
  • the operation event is executed.
  • the rotatable camera is a front camera
  • the terminal device is further configured with a rear camera
  • the scene type to which the current scene belongs is a shooting scene
  • the type determining unit is used for:
  • the executing the operation event based on the operation parameter and the operation type includes:
  • the focus adjustment is performed on the preview image acquired based on the rear camera.
  • the parameter determining unit is configured to:
  • the preset conversion relationship Determining a preset conversion relationship corresponding to the operation type based on the operation type, the preset conversion relationship being determined based on data obtained by the predetermined sensor monitoring the rotation of the rotatable camera;
  • an operating parameter for executing the operating event is determined.
  • the type determining unit is configured to:
  • the operation type of the operation event is determined.
  • the control device of the embodiment of the present disclosure may also execute the method executed by the terminal device in FIGS. 1 to 4, and realize the functions of the terminal device in the embodiment shown in FIGS. 1 to 4, which will not be repeated here.
  • the embodiment of this specification provides a control device that receives a user's rotation operation on a rotatable camera when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction, and then determines based on the target scene The operation event corresponding to the target scene and the rotation operation is executed.
  • the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal.
  • it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
  • the embodiment of this specification also provides a control device configured with a retractable camera, as shown in FIG. 8.
  • the control device includes: a telescopic monitoring module 801, a second determining module 802, and a second executing module 803, wherein:
  • the telescopic monitoring module 801 is configured to receive the telescopic operation of the telescopic camera by the user when the current scene is the target scene, wherein the telescopic operation includes the distance extended or shortened by the telescopic camera;
  • the second determining module 802 is configured to determine an operation event corresponding to the target scene and the scaling operation based on the target scene;
  • the second execution module 803 is configured to execute the operation event.
  • the control device of the embodiment of the present disclosure may also execute the method executed by the terminal device in FIGS. 5 to 6 and realize the functions of the terminal device in the embodiment shown in FIGS. 5 to 6, which will not be repeated here.
  • the embodiment of the present specification provides a control device that receives a user's telescopic operation of a telescopic camera when the current scene is the target scene, where the telescopic operation includes the distance extended or shortened by the telescopic camera, and then based on the target scene , Determine the operation event corresponding to the target scene and scaling operation, and execute the operation event.
  • the user only needs to perform telescopic operations on the retractable camera to control the terminal device to execute the corresponding operation event, without the need for repeated adjustment operations, which improves the control efficiency of the terminal.
  • it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
  • FIG. 9 is a schematic diagram of the hardware structure of a terminal device implementing various embodiments of the present disclosure.
  • the terminal device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and Power 911 and other components.
  • a radio frequency unit 901 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and Power 911 and other components.
  • Those skilled in the art can understand that the structure of the terminal device shown in FIG. 9 does not constitute a limitation on the terminal device, and the terminal device may include more or fewer components than shown in the figure, or combine certain components, or different components Layout.
  • terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals,
  • the processor 910 is configured to receive a rotation operation of the rotatable camera by the user when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction;
  • the processor 910 is further configured to determine an operation event corresponding to the target scene and the rotation operation based on the target scene;
  • the processor 910 is further configured to execute the operation event.
  • processor 910 is further configured to activate a predetermined sensor and the rotatable camera when the current scene is the target scene;
  • the processor 910 is further configured to monitor the rotation operation of the rotatable camera by the user through the predetermined sensor.
  • processor 910 is further configured to obtain the scene type to which the target scene belongs;
  • the processor 910 is further configured to determine the operation type of the operation event corresponding to the scene type based on the scene type to which the target scene belongs;
  • processor 910 is further configured to determine an operation parameter for executing the operation event based on the rotation operation and the operation type;
  • processor 910 is further configured to execute the operation event based on the operation parameter and the operation type.
  • the processor 910 is also configured to obtain the light intensity of the current environment through the photosensitive sensor when the preset light monitoring period is reached.
  • the rotatable camera is a front camera
  • the terminal device is also configured with a rear camera
  • the scene type to which the current scene belongs is a shooting scene
  • the processor 910 is further configured to determine that the operation type of the operation event corresponding to the shooting scene is focus adjustment;
  • the processor 910 is further configured to adjust the focus of the preview image acquired based on the rear camera based on the operating parameter.
  • the processor 910 is further configured to determine a preset conversion relationship corresponding to the operation type based on the operation type, and the preset conversion relationship is based on the predetermined sensor monitoring the rotation of the rotatable camera. The data obtained is confirmed;
  • the processor 910 is further configured to determine a first operation parameter corresponding to the rotation angle based on the preset conversion relationship
  • the processor 910 is further configured to determine an operation parameter for executing the operation event based on the first operation parameter and/or the rotation direction.
  • the processor 910 is further configured to receive a user input operation on the operation type of the operation event corresponding to the scene type to which the target scene belongs;
  • the processor 910 is further configured to determine the operation type of the operation event based on the input operation.
  • the terminal device 900 may also perform the following processing procedures:
  • the terminal device 910 is configured to receive a user's telescopic operation on the retractable camera when the current scene is the target scene, where the telescopic operation includes the distance extended or shortened by the retractable camera;
  • the terminal device 910 is further configured to determine an operation event corresponding to the target scene and the scaling operation based on the target scene;
  • the terminal device 910 is also used to execute the operation event.
  • Embodiments of the present disclosure provide a terminal device that receives a user's rotation operation on a rotatable camera when the current scene is a target scene, where the rotation operation includes a rotation angle and/or a rotation direction, and then determines based on the target scene The operation event corresponding to the target scene and the rotation operation is executed.
  • the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal.
  • it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
  • the radio frequency unit 901 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 910; Uplink data is sent to the base station.
  • the radio frequency unit 901 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 901 can also communicate with the network and other devices through a wireless communication system.
  • the terminal device provides users with wireless broadband Internet access through the network module 902, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 903 can convert the audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output it as sound. Moreover, the audio output unit 903 may also provide audio output related to a specific function performed by the terminal device 900 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 904 is used to receive audio or video signals.
  • the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042.
  • the graphics processor 9041 is used for the image of a still picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 906.
  • the image frames processed by the graphics processor 9041 may be stored in the memory 909 (or other storage medium) or sent via the radio frequency unit 901 or the network module 902.
  • the microphone 9042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 901 for output in the case of a telephone call mode.
  • the terminal device 900 further includes at least one sensor 905, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 9061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 9061 and the display panel 9061 when the terminal device 900 is moved to the ear. / Or backlight.
  • the accelerometer sensor can monitor the magnitude of acceleration in various directions (usually three-axis), and can monitor the magnitude and direction of gravity when stationary, and can be used to identify terminal device posture (such as horizontal and vertical screen switching, related games , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 905 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 906 is used to display information input by the user or information provided to the user.
  • the display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 907 may be used to receive input digital or character information, and generate key signal input related to user settings and function control of the terminal device.
  • the user input unit 907 includes a touch panel 9071 and other input devices 9072.
  • the touch panel 9071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 9071 or near the touch panel 9071. operating).
  • the touch panel 9071 may include two parts, a touch monitoring device and a touch controller.
  • the touch monitoring device monitors the user's touch position, and monitors the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch monitoring device, converts it into contact coordinates, and then sends it To the processor 910, the command sent by the processor 910 is received and executed.
  • the touch panel 9071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 907 may also include other input devices 9072.
  • other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 9071 can cover the display panel 9061.
  • the touch panel 9071 detects a touch operation on or near it, it transmits it to the processor 910 to determine the type of the touch event.
  • the type of event provides corresponding visual output on the display panel 9061.
  • the touch panel 9071 and the display panel 9061 are used as two independent components to realize the input and output functions of the terminal device, in some embodiments, the touch panel 9071 and the display panel 9061 can be integrated
  • the implementation of the input and output functions of the terminal device is not specifically limited here.
  • the interface unit 908 is an interface for connecting an external device and the terminal device 900.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 908 may be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 900 or may be used to connect to the terminal device 900 and external Transfer data between devices.
  • the memory 909 can be used to store software programs and various data.
  • the memory 909 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 909 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 910 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 909, and calls data stored in the memory 909 , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole.
  • the processor 910 may include one or more processing units; optionally, the processor 910 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 910.
  • the terminal device 900 may also include a power source 911 (such as a battery) for supplying power to various components.
  • a power source 911 such as a battery
  • the power source 911 may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • an embodiment of the present disclosure further provides a terminal device, including a processor 910, a memory 909, a computer program stored in the memory 909 and running on the processor 910, and the computer program is executed by the processor 910
  • a terminal device including a processor 910, a memory 909, a computer program stored in the memory 909 and running on the processor 910, and the computer program is executed by the processor 910
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored.
  • a computer program is stored.
  • the computer program is executed by a processor, each process of the above-mentioned control method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat it here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiments of the present disclosure provide a computer-readable storage medium, which receives a user's rotation operation on a rotatable camera when the current scene is a target scene, where the rotation operation includes a rotation angle and/or a rotation direction, and is then based on the target scene. Scene, determine the operation event corresponding to the target scene and rotation operation, and execute the operation event.
  • the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal.
  • it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
  • the embodiments of the present disclosure can be provided as methods, systems, or computer program products. Therefore, the present disclosure may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.

Abstract

Disclosed in embodiments of the present disclosure are a control method and apparatus, and a terminal device. The method comprises: receiving a rotation operation of a user on a rotatable camera when the current scene is a target scene, wherein the rotation operation comprises a rotation angle and/or a rotation direction; determining an operational event corresponding to the target scene and the rotation operation on the basis of the target scene; and executing the operational event.

Description

控制方法、装置及终端设备Control method, device and terminal equipment
相关申请的交叉引用Cross references to related applications
本申请主张在2019年6月20日在中国提交的中国专利申请No.201910536510.3的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201910536510.3 filed in China on June 20, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本公开涉及计算机技术领域,尤其涉及一种控制方法、装置及终端设备。The present disclosure relates to the field of computer technology, and in particular to a control method, device and terminal equipment.
背景技术Background technique
随着计算机技术的不断发展,以手机为主的终端设备逐渐成为人们生活和工作的必需品,为满足人们对终端设备屏幕的使用需求,制造商通过简化实体按键以及隐藏前置摄像头等方式来提高屏幕占比,以得到更好的屏幕使用效果,如配置有可伸缩摄像头的全屏手机。With the continuous development of computer technology, mobile phone-based terminal equipment has gradually become a necessity for people’s life and work. In order to meet people’s needs for the use of terminal equipment screens, manufacturers have improved by simplifying physical buttons and hiding the front camera. Screen-to-body ratio for better screen usage, such as a full-screen mobile phone equipped with a retractable camera.
用户在使用全屏手机时,在特定的场景下,可以在屏幕的特定区域通过特定的操作来实现特定的使用效果。例如,用户在使用全面屏手机观看视频时,可以在屏幕的特定区域(如屏幕左侧区域)通过向上或向下的滑动操作,控制音量变大或变小。或者,用户在使用全面屏手机进行图像拍摄时,在图像预览框中,用户可以通过双指在屏幕上的伸缩滑动操作,控制摄像头的焦距变大或变小。When a user uses a full-screen mobile phone, in a specific scenario, a specific operation effect can be achieved in a specific area of the screen. For example, when a user uses a full-screen mobile phone to watch a video, he can swipe up or down in a specific area of the screen (such as the left side of the screen) to control the volume to increase or decrease. Or, when the user uses a full-screen mobile phone to take an image, in the image preview box, the user can control the focal length of the camera to increase or decrease by using two-finger telescopic sliding operations on the screen.
但是,用户在屏幕上进行操作时,由于屏幕对用户操作较为敏感,如果用户的操作幅度过小,终端设备可能不会对用户操作做出反应,同时,如果用户的操作幅度较大,终端设备可能会对用户操作做出过度的反应。例如,用户在观看视频时,可能会存在由于手指在屏幕上向上的滑动操作的幅度较大,而导致视频播放的音量迅速变大,给用户的听觉带来非常恶劣的后果,或者,用户在进行图像拍摄时,也会存在由于伸缩滑动操作的滑动幅度过大/过小,而导致预览图像突然放大/突然缩小的情况的发生,为了达到较好的使用效果,用户需要进行多次的操作,终端控制的效率较低。However, when the user operates on the screen, since the screen is more sensitive to user operations, if the user's operation range is too small, the terminal device may not respond to the user's operation. At the same time, if the user's operation range is large, the terminal device May overreact to user actions. For example, when a user is watching a video, there may be a large swipe operation of the finger on the screen, which causes the volume of the video playback to increase rapidly, which brings very bad consequences to the user’s hearing, or the user is When shooting images, there may also be cases where the preview image is suddenly zoomed in/out due to the too large/too small sliding range of the telescopic sliding operation. In order to achieve a better use effect, the user needs to perform multiple operations , The efficiency of terminal control is low.
发明内容Summary of the invention
本公开实施例的目的是提供一种控制方法、装置及设备,以解决相关技术中为达到较好的使用效果,用户需要在屏幕上进行多次操作,而产生的终端控制效率较低的问题。The purpose of the embodiments of the present disclosure is to provide a control method, device, and equipment to solve the problem of low terminal control efficiency caused by the user needing to perform multiple operations on the screen in order to achieve better use effects in related technologies. .
为解决上述技术问题,本公开实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present disclosure are implemented as follows:
第一方面,本公开实施例提供的一种控制方法,所述方法应用于配置有可旋转摄像头的终端设备,所述方法包括:In the first aspect, an embodiment of the present disclosure provides a control method, which is applied to a terminal device equipped with a rotatable camera, and the method includes:
在当前场景为目标场景的情况下,接收用户对所述可旋转摄像头的旋转操作,其中,所述旋转操作包括旋转角度和/或旋转方向;In a case where the current scene is the target scene, receiving a user's rotation operation on the rotatable camera, where the rotation operation includes a rotation angle and/or a rotation direction;
基于所述目标场景,确定与所述目标场景和所述旋转操作相对应的操作事件;Based on the target scene, determining an operation event corresponding to the target scene and the rotation operation;
执行所述操作事件。Perform the operation event.
可选地,所述在当前场景为目标场景的情况下,接收用户对所述可旋转摄像头的旋转操作,包括:Optionally, when the current scene is the target scene, receiving a user's rotation operation on the rotatable camera includes:
在所述当前场景为目标场景的情况下,启动预定传感器和所述可旋转摄像头;In the case that the current scene is the target scene, activate a predetermined sensor and the rotatable camera;
通过所述预定传感器监测用户对所述可旋转摄像头的旋转操作。The rotation operation of the rotatable camera by the user is monitored by the predetermined sensor.
可选地,所述基于所述目标场景,确定与所述目标场景和所述旋转操作相对应的操作事件,包括:Optionally, the determining an operation event corresponding to the target scene and the rotation operation based on the target scene includes:
获取所述目标场景所属的场景类型;Acquiring the scene type to which the target scene belongs;
基于所述目标场景所属的场景类型,确定与所述场景类型对应的所述操作事件的操作类型;Determine the operation type of the operation event corresponding to the scene type based on the scene type to which the target scene belongs;
基于所述旋转操作和所述操作类型,确定用于执行所述操作事件的操作参数;Based on the rotation operation and the operation type, determining operation parameters for executing the operation event;
所述执行所述操作事件,包括:The execution of the operation event includes:
基于所述操作参数和所述操作类型,执行所述操作事件。Based on the operation parameter and the operation type, the operation event is executed.
可选地,所述基于所述旋转操作和所述操作类型,确定用于执行所述操作事件的操作参数,包括:Optionally, the determining operation parameters for executing the operation event based on the rotation operation and the operation type includes:
基于所述操作类型,确定与所述操作类型对应的预设换算关系,所述预 设换算关系为基于所述预定传感器监测所述可旋转摄像头旋转所得到的数据确定;Determining a preset conversion relationship corresponding to the operation type based on the operation type, the preset conversion relationship being determined based on data obtained by the predetermined sensor monitoring the rotation of the rotatable camera;
基于所述预设换算关系,确定与所述旋转角度对应的第一操作参数;Determine a first operating parameter corresponding to the rotation angle based on the preset conversion relationship;
基于所述第一操作参数和/或所述旋转方向,确定用于执行所述操作事件的操作参数。Based on the first operating parameter and/or the rotation direction, an operating parameter for executing the operating event is determined.
可选地,所述基于所述目标场景所属的场景类型,确定与所述场景类型对应的所述操作事件的操作类型,包括:Optionally, the determining the operation type of the operation event corresponding to the scene type based on the scene type to which the target scene belongs includes:
接收用户对与所述目标场景所属的场景类型对应的所述操作事件的操作类型的输入操作;Receiving a user input operation on the operation type of the operation event corresponding to the scene type to which the target scene belongs;
基于所述输入操作,确定所述操作事件的操作类型。Based on the input operation, the operation type of the operation event is determined.
第二方面,本公开实施例提供的一种控制方法,所述方法应用于配置有可伸缩摄像头的终端设备,所述方法包括:In the second aspect, an embodiment of the present disclosure provides a control method, which is applied to a terminal device equipped with a retractable camera, and the method includes:
在当前场景为目标场景的情况下,接收用户对所述可伸缩摄像头的伸缩操作,其中,所述伸缩操作包括所述可伸缩摄像头伸长或缩短的距离;In the case that the current scene is the target scene, receiving a user's telescopic operation of the telescopic camera, where the telescopic operation includes the distance extended or shortened by the telescopic camera;
基于所述目标场景,确定与所述目标场景和所述伸缩操作相对应的操作事件;Based on the target scene, determine an operation event corresponding to the target scene and the scaling operation;
执行所述操作事件。Perform the operation event.
第三方面,本公开实施例提供了一种控制装置,所述装置配置有可旋转摄像头,所述装置包括:In a third aspect, an embodiment of the present disclosure provides a control device configured with a rotatable camera, and the device includes:
操作接收模块,用于在当前场景为目标场景的情况下,接收用户对所述可旋转摄像头的旋转操作,其中,所述旋转操作包括旋转角度和/或旋转方向;The operation receiving module is configured to receive a rotation operation of the rotatable camera by the user when the current scene is the target scene, wherein the rotation operation includes a rotation angle and/or a rotation direction;
第一确定模块,用于基于所述目标场景,确定与所述目标场景和所述旋转操作相对应的操作事件;A first determining module, configured to determine an operation event corresponding to the target scene and the rotation operation based on the target scene;
第一执行模块,用于执行所述操作事件。The first execution module is used to execute the operation event.
可选地,所述操作接收模块,包括:Optionally, the operation receiving module includes:
启动单元,用于在所述当前场景为目标场景的情况下,启动预定传感器和所述可旋转摄像头;An activation unit, configured to activate a predetermined sensor and the rotatable camera when the current scene is the target scene;
操作监测单元,用于通过所述预定传感器监测用户对所述可旋转摄像头的旋转操作。The operation monitoring unit is configured to monitor the rotation operation of the rotatable camera by the user through the predetermined sensor.
可选地,所述第一确定模块,包括:Optionally, the first determining module includes:
类型获取单元,用于获取所述目标场景所属的场景类型;The type obtaining unit is configured to obtain the scene type to which the target scene belongs;
类型确定单元,用于基于所述目标场景所属的场景类型,确定与所述场景类型对应的所述操作事件的操作类型;A type determining unit, configured to determine the operation type of the operation event corresponding to the scene type based on the scene type to which the target scene belongs;
参数确定单元,用于基于所述旋转操作和所述操作类型,确定用于执行所述操作事件的操作参数;A parameter determination unit, configured to determine an operation parameter for executing the operation event based on the rotation operation and the operation type;
所述事件执行模块,用于:The event execution module is used to:
基于所述操作参数和所述操作类型,执行所述操作事件。Based on the operation parameter and the operation type, the operation event is executed.
所述基于所述操作参数和所述操作类型,执行所述操作事件,包括:The executing the operation event based on the operation parameter and the operation type includes:
基于所述操作参数,对基于所述后置摄像头获取的预览图像进行焦距调节。Based on the operating parameters, the focus adjustment is performed on the preview image acquired based on the rear camera.
可选地,所述参数确定单元,用于:Optionally, the parameter determining unit is configured to:
基于所述操作类型,确定与所述操作类型对应的预设换算关系,所述预设换算关系为基于所述预定传感器监测所述可旋转摄像头旋转所得到的数据确定;Determining a preset conversion relationship corresponding to the operation type based on the operation type, the preset conversion relationship being determined based on data obtained by the predetermined sensor monitoring the rotation of the rotatable camera;
基于所述预设换算关系,确定与所述旋转角度对应的第一操作参数;Determine a first operating parameter corresponding to the rotation angle based on the preset conversion relationship;
基于所述第一操作参数和/或所述旋转方向,确定用于执行所述操作事件的操作参数。Based on the first operating parameter and/or the rotation direction, an operating parameter for executing the operating event is determined.
可选地,所述类型确定单元,用于:Optionally, the type determining unit is configured to:
接收用户对与所述目标场景所属的场景类型对应的所述操作事件的操作类型的输入操作;Receiving a user input operation on the operation type of the operation event corresponding to the scene type to which the target scene belongs;
基于所述输入操作,确定所述操作事件的操作类型。Based on the input operation, the operation type of the operation event is determined.
第四方面,本公开实施例提供了一种控制装置,所述装置配置有可伸缩摄像头,所述装置包括:In a fourth aspect, an embodiment of the present disclosure provides a control device, the device is configured with a retractable camera, and the device includes:
伸缩监测模块,用于在当前场景为目标场景的情况下,接收用户对所述可伸缩摄像头的伸缩操作,其中,所述伸缩操作包括所述可伸缩摄像头伸长或缩短的距离;The telescopic monitoring module is configured to receive a user's telescopic operation on the telescopic camera when the current scene is the target scene, wherein the telescopic operation includes the distance extended or shortened by the telescopic camera;
第二确定模块,用于基于所述目标场景,确定与所述目标场景和所述伸缩操作相对应的操作事件;A second determining module, configured to determine an operation event corresponding to the target scene and the scaling operation based on the target scene;
第二执行模块,用于执行所述操作事件。The second execution module is used to execute the operation event.
第五方面,本公开实施例提供一种终端设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述第一方面提供的控制方法的步骤。In a fifth aspect, the embodiments of the present disclosure provide a terminal device, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, The steps of the control method provided in the first aspect are implemented.
第六方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述第一方面提供的控制方法的步骤。In a sixth aspect, embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method provided in the first aspect are implemented.
第七方面,本公开实施例提供一种终端设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述第二方面提供的控制方法的步骤。In a seventh aspect, embodiments of the present disclosure provide a terminal device, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor. Implement the steps of the control method provided in the second aspect above.
第八方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述第二方面提供的控制方法的步骤。In an eighth aspect, embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method provided in the second aspect are implemented.
由以上本公开实施例提供的技术方案可见,本公开实施例通过在当前场景为目标场景的情况下,接收用户对可旋转摄像头的旋转操作,其中,旋转操作包括旋转角度和/或旋转方向,然后基于目标场景,确定与目标场景和旋转操作相对应的操作事件,执行操作事件。这样,在目标场景下,用户只需对可旋转摄像头进行旋转操作,就可以控制终端设备执行对应的操作事件,而不需要多次重复的进行调节操作,提高了对终端的控制效率。同时,也保证了终端设备能准确的根据用户的旋转操作执行操作事件,满足用户的实际使用需求,提高用户体验。As can be seen from the technical solutions provided by the above embodiments of the present disclosure, the embodiments of the present disclosure receive a user's rotation operation on a rotatable camera when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction, Then, based on the target scene, the operation event corresponding to the target scene and the rotation operation is determined, and the operation event is executed. In this way, in the target scenario, the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal. At the same time, it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
附图说明Description of the drawings
为了更清楚地说明本说明书实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of this specification or related technologies, the following will briefly introduce the drawings that need to be used in the embodiments or related technical descriptions. Obviously, the drawings in the following description are merely For some of the embodiments described in the specification, for those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative labor.
图1为本公开一种控制方法实施例;Figure 1 is an embodiment of a control method of the present disclosure;
图2为本公开一种基于旋转角度确定操作方法的示意图;FIG. 2 is a schematic diagram of a method for determining an operation based on a rotation angle of the present disclosure;
图3为本公开另一种控制方法实施例;Figure 3 is an embodiment of another control method of the present disclosure;
图4为本公开又一种基于旋转角度确定操作方法的示意图;FIG. 4 is a schematic diagram of another method of determining an operation based on a rotation angle of the present disclosure;
图5为本公开又一种控制方法实施例;Figure 5 is another embodiment of the control method of the present disclosure;
图6为本公开又一种控制方法实施例;FIG. 6 is another embodiment of the control method of the present disclosure;
图7为本公开一种控制装置实施例;Figure 7 is an embodiment of a control device of the present disclosure;
图8为本公开一种控制装置实施例;Figure 8 is an embodiment of a control device of the present disclosure;
图9为本公开一种终端设备实施例。Fig. 9 is an embodiment of a terminal device of the present disclosure.
具体实施方式Detailed ways
本公开实施例提供一种控制方法、装置及终端设备。The embodiments of the present disclosure provide a control method, device and terminal equipment.
为了使本技术领域的人员更好地理解本公开中的技术方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本公开保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present disclosure, the following will clearly and completely describe the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described The embodiments are only a part of the embodiments in this specification, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the protection scope of the present disclosure.
实施例一Example one
如图1所示,本公开实施例提供一种控制方法,该方法的执行主体可以为终端设备,其中,该终端设备配置有可旋转的摄像头,该终端设备可以如个人计算机等设备,也可以如手机、平板电脑等移动终端设备,该终端设备可以为用户使用的终端设备。该方法具体可以包括以下步骤:As shown in FIG. 1, an embodiment of the present disclosure provides a control method. The execution subject of the method may be a terminal device, where the terminal device is equipped with a rotatable camera, and the terminal device may be a device such as a personal computer or Such as mobile terminal devices such as mobile phones and tablet computers, the terminal device may be a terminal device used by the user. The method may specifically include the following steps:
在步骤S102中,在当前场景为目标场景的情况下,接收用户对可旋转摄像头的旋转操作,In step S102, when the current scene is the target scene, receiving the user's rotation operation on the rotatable camera,
其中,目标场景可以是拍摄场景(包括图像拍摄场景或视频拍摄场景等)、图像查看场景、视频播放场景、阅读场景、显示屏显示参数设置场景等,旋转操作可以包括旋转角度和/或旋转方向。Among them, the target scene can be a shooting scene (including image shooting scenes or video shooting scenes, etc.), image viewing scenes, video playback scenes, reading scenes, display parameter setting scenes, etc. The rotation operation can include rotation angle and/or rotation direction .
在实施中,随着计算机技术的不断发展,以手机为主的终端设备逐渐成为人们生活和工作的必需品,为满足人们对终端设备屏幕的使用需求,制造商通过简化实体按键以及隐藏前置摄像头等方式来提高屏幕占比,以得到更 好的屏幕使用效果,如配置有可伸缩摄像头的全屏手机。用户在使用全屏手机时,在特定的场景下,可以在屏幕的特定区域通过特定的操作来实现特定的使用效果。例如,用户在使用全面屏手机观看视频时,可以在屏幕的特定区域(如屏幕左侧区域)通过向上或向下的滑动操作,控制音量变大或变小。或者,用户在使用全面屏手机进行图像拍摄时,在图像预览框中,用户可以通过双指在屏幕上的伸缩滑动操作,控制摄像头的焦距变大或变小。In the implementation, with the continuous development of computer technology, mobile phone-based terminal equipment has gradually become a necessity for people’s life and work. In order to meet people’s needs for the use of terminal equipment screens, manufacturers have simplified physical buttons and hidden front cameras. To increase the screen-to-body ratio, etc., to get a better screen use effect, such as a full-screen mobile phone equipped with a retractable camera. When a user uses a full-screen mobile phone, in a specific scenario, a specific operation effect can be achieved in a specific area of the screen. For example, when a user uses a full-screen mobile phone to watch a video, he can swipe up or down in a specific area of the screen (such as the left side of the screen) to control the volume to increase or decrease. Or, when the user uses a full-screen mobile phone to take an image, in the image preview box, the user can control the focal length of the camera to increase or decrease by using two-finger telescopic sliding operations on the screen.
但是,用户在屏幕上进行操作时,由于屏幕对用户操作较为敏感,如果用户的操作幅度过小,终端设备可能不会对用户操作做出反应,同时,如果用户的操作幅度较大,终端设备可能会对用户操作做出过度的反应。例如,用户在观看视频时,可能会存在由于手指在屏幕上向上的滑动操作的幅度较大,而导致视频播放的音量迅速变大,给用户的听觉带来非常恶劣的后果,或者,用户在进行图像拍摄时,也会存在由于伸缩滑动操作的滑动幅度过大/过小,而导致预览图像突然放大/突然缩小的情况的发生,为了达到较好的使用效果,用户需要进行多次的操作,终端控制的效率较低。为此,本公开实施例提供一种能够解决上述问题的技术方案,具体可以包括以下内容:However, when the user operates on the screen, since the screen is more sensitive to user operations, if the user's operation range is too small, the terminal device may not respond to the user's operation. At the same time, if the user's operation range is large, the terminal device May overreact to user actions. For example, when a user is watching a video, there may be a large swipe operation of the finger on the screen, which causes the volume of the video playback to increase rapidly, which brings very bad consequences to the user’s hearing, or the user is When shooting images, there may also be cases where the preview image is suddenly zoomed in/out due to the too large/too small sliding range of the telescopic sliding operation. In order to achieve a better use effect, the user needs to perform multiple operations , The efficiency of terminal control is low. To this end, the embodiments of the present disclosure provide a technical solution that can solve the above-mentioned problems, which may specifically include the following content:
当用户启动终端设备后,终端设备可以对用户对终端设备的使用情况进行监测,如果当前场景为目标场景,可以开启可旋转摄像头,并接收用户对可旋转摄像头的旋转操作。例如,用户在启动终端设备后,可以点击图像拍摄应用程序,此时终端设备可以监测到当前场景为图像/视频拍摄场景(即当前场景为目标场景),终端设备可以启动可旋转摄像头,并接收用户对可旋转摄像头的旋转操作。After the user starts the terminal device, the terminal device can monitor the user's use of the terminal device. If the current scene is the target scene, it can turn on the rotatable camera and receive the user's rotation operation on the rotatable camera. For example, after starting the terminal device, the user can click on the image capture application. At this time, the terminal device can detect that the current scene is the image/video shooting scene (that is, the current scene is the target scene), and the terminal device can start the rotatable camera and receive The user's rotation operation of the rotatable camera.
其中,可旋转摄像头可以隐藏在终端设备内,当接收到启动指令时,终端设备可以控制可旋转摄像头从终端设备内伸出,以供用户对可旋转摄像头进行旋转操作。或者,可旋转摄像头可以在终端设备的一侧,并可以配置有物理按键,若终端设备监测到当前场景为目标场景,可以启动物理按键,此时,用户可以在物理按键进行单击或双击操作,以启动可旋转摄像头,然后用户可以对伸出的可旋转摄像头进行旋转操作。Among them, the rotatable camera can be hidden in the terminal device. When receiving a start instruction, the terminal device can control the rotatable camera to extend from the terminal device, so that the user can rotate the rotatable camera. Alternatively, the rotatable camera can be on the side of the terminal device and can be equipped with physical buttons. If the terminal device detects that the current scene is the target scene, the physical button can be activated. At this time, the user can click or double-click on the physical button To activate the rotatable camera, and then the user can rotate the extended rotatable camera.
此外,在当前场景为目标场景的情况下,如果在预设时间范围内,终端设备未接收到用户对可旋转摄像头的旋转操作,则终端设备可以关闭可旋转 摄像头(即将可旋转摄像头收回至终端设备内)。当接收到用户的预设使用指令时,可再次开启可旋转摄像头,并接收用户对可旋转摄像头的旋转操作。例如,若视频播放场景为目标场景,预设时间范围为2分钟,当终端设备监测到用户打开视频播放应用程序,并点击视频1进行观看时,终端设备可以开启可旋转摄像头(即控制可旋转摄像头从终端设备内伸出),如果在2分钟内,终端设备都未接收到用户对可旋转摄像头的旋转操作,则终端设备可以关闭可旋转摄像头(即将可旋转摄像头收回至终端设备内)。如果用户需要对可旋转摄像头进行旋转操作,用户可以通过预设使用指令,以控制终端设备启动可旋转摄像头,其中,预设使用指令可以是在屏幕的预定区域进行预定操作(如在屏幕的左侧进行双击操作),或者,预设使用指令也可以是在终端设备配置的物理按键上的预定操作(如双击音量放大键)等。In addition, when the current scene is the target scene, if the terminal device does not receive the user's rotation operation on the rotatable camera within the preset time range, the terminal device can turn off the rotatable camera (that is, retract the rotatable camera to the terminal). Inside the device). When the user's preset usage instruction is received, the rotatable camera can be turned on again, and the user's rotation operation on the rotatable camera can be received. For example, if the video playback scene is the target scene and the preset time range is 2 minutes, when the terminal device detects that the user opens the video playback application and clicks on video 1 to watch, the terminal device can turn on the rotatable camera (that is, control the rotatable The camera extends from the terminal device). If the terminal device does not receive the user's rotation operation of the rotatable camera within 2 minutes, the terminal device can close the rotatable camera (that is, retract the rotatable camera into the terminal device). If the user needs to perform a rotation operation on the rotatable camera, the user can control the terminal device to start the rotatable camera through a preset use instruction, where the preset use instruction may be to perform a predetermined operation in a predetermined area of the screen (such as on the left side of the screen). (Double-click operation on the side), or, the preset use instruction may also be a predetermined operation on a physical button configured on the terminal device (such as double-clicking the volume amplification button).
在步骤S104中,基于目标场景,确定与目标场景和旋转操作相对应的操作事件。In step S104, based on the target scene, an operation event corresponding to the target scene and the rotation operation is determined.
在实施中,可以根据预设的对应关系,确定与目标场景和旋转操作对应的操作事件。例如,目标场景可以包括图像拍摄场景、视频播放场景以及阅读场景,旋转操作可以包括沿顺时针方向进行旋转的第一旋转操作,以及沿逆时针进行旋转的第二旋转操作,基于预设的对应关系(如表1所示的预设的对应关系),可以确定不同的目标场景下,不同的旋转操作所对应的操作事件。In implementation, the operation event corresponding to the target scene and the rotation operation can be determined according to the preset correspondence relationship. For example, the target scene may include an image shooting scene, a video playback scene, and a reading scene. The rotation operation may include a first rotation operation that rotates clockwise, and a second rotation operation that rotates counterclockwise, based on a preset corresponding The relationship (such as the preset corresponding relationship shown in Table 1) can determine the operation events corresponding to different rotation operations in different target scenarios.
表1Table 1
目标场景Target scene 旋转操作Rotate operation 操作事件Operation event
图像拍摄场景Image shooting scene 第一旋转操作First rotation operation 焦距放大事件Zoom event
图像拍摄场景Image shooting scene 第二旋转操作Second rotation operation 焦距缩小事件Focus reduction event
视频播放场景Video playback scene 第一旋转操作First rotation operation 音量增大事件Volume up event
视频播放场景Video playback scene 第二旋转操作Second rotation operation 音量减小事件Volume down event
阅读场景Reading scene 第一旋转操作First rotation operation 字体放大事件Font enlargement event
阅读场景Reading scene 第二旋转操作Second rotation operation 字体缩小事件Font reduction event
基于表1中的预设的对应关系,可以确定不同的目标场景下,不同的旋转操作对应的操作事件。例如,目标场景为视频播放场景,终端设备可以根 据用户对可旋转摄像头的旋转方向,确定是音量增大事件还是音量减小事件。如用户可以将可旋转摄像头往顺时针方向旋转(即旋转操作为第一旋转),对应的操作事件可以为音量增大事件。然后可以根据用户对可旋转摄像头的旋转角度,确定对应的音量调节幅度,如用户将可旋转摄像头从0度(即可旋转摄像头从终端设备内伸出时的初始位置)旋转至5度,则对应的音量调节幅度可以为5。其中,可旋转摄像头伸出时的初始位置对应的音量可以是当前场景下的实时音量。Based on the preset correspondence in Table 1, the operation events corresponding to different rotation operations in different target scenarios can be determined. For example, if the target scene is a video playback scene, the terminal device can determine whether it is a volume increase event or a volume decrease event according to the user's rotation direction of the rotatable camera. If the user can rotate the rotatable camera in a clockwise direction (that is, the rotation operation is the first rotation), the corresponding operation event may be a volume increase event. Then you can determine the corresponding volume adjustment range according to the user's rotation angle of the rotatable camera. For example, if the user rotates the rotatable camera from 0 degrees (that is, the initial position when the rotatable camera extends from the terminal device) to 5 degrees, then The corresponding volume adjustment range can be 5. Wherein, the volume corresponding to the initial position when the rotatable camera is extended may be the real-time volume in the current scene.
此外,还可以根据用户对可旋转摄像头的旋转角度,确定目标场景对应的操作事件。例如,可以基于可旋转摄像头从终端设备内伸出时的初始位置,设定不同的旋转角度对应的刻度,如图2所示,在初始位置顺时针方向的0-180度可以对应0度到180度,在初始位置逆时针方向的0-180度可以对应0度到-180度。如果目标场景为阅读场景,用户将可旋转摄像头旋转到0度到180度的范围内,则对应的操作事件可以为字体放大事件,具体的字体放大幅度可以根据旋转角度确定。相反的,如果用户将可旋转摄像头旋转到0度到-180度的范围内,则对应的操作事件可以是字体缩小事件,具体的字体缩小幅度也可以根据旋转角度确定。In addition, the operation event corresponding to the target scene can also be determined according to the user's rotation angle of the rotatable camera. For example, you can set the scales corresponding to different rotation angles based on the initial position when the rotatable camera extends from the terminal device. As shown in Figure 2, the 0-180 degree clockwise in the initial position can correspond to 0 degree to 0 degree. 180 degrees, 0-180 degrees counterclockwise in the initial position can correspond to 0 degrees to -180 degrees. If the target scene is a reading scene and the user rotates the rotatable camera to a range of 0 degrees to 180 degrees, the corresponding operation event can be a font enlargement event, and the specific font enlargement can be determined according to the rotation angle. Conversely, if the user rotates the rotatable camera to a range of 0 degrees to -180 degrees, the corresponding operation event may be a font reduction event, and the specific font reduction range may also be determined according to the rotation angle.
如果目标场景为图片预览切换场景,则可以根据用户对可旋转摄像头的旋转方向,对预览图片进行切换。例如,当用户将可旋转摄像头向顺时针方向旋转一格,终端设备可以将当前显示的预览图像切换至下一张预览图像进行显示,如果用户将可旋转摄像头向逆时针方向旋转一格,则终端设备可以将当前显示的预览图像切换至上一张预览图像进行显示。If the target scene is a picture preview switching scene, the preview picture can be switched according to the rotation direction of the rotatable camera by the user. For example, when the user rotates the rotatable camera one frame in the clockwise direction, the terminal device can switch the currently displayed preview image to the next preview image for display. If the user rotates the rotatable camera one frame in the counterclockwise direction, then The terminal device can switch the currently displayed preview image to the previous preview image for display.
此外,终端设备中配置的可旋转摄像头还可以具有伸缩功能,在同一个目标场景中,可以根据可旋转摄像头的伸缩距离,以及用户的旋转操作确定对应的操作事件。例如,终端设备启动可旋转摄像头后,可旋转摄像头自动从终端设备内伸出,并固定在距离终端设备1cm的位置,此时,用户可以将可旋转摄像头从距离终端设备1cm的位置调整到距离终端设备1.5cm或0.5cm的位置,终端设备可以根据最终监测到的可旋转摄像头与终端设备之间的距离,基于预设的伸缩操作关系,确定对应的操作事件。例如,在目标场景为阅读场景的情况下,用户可以将可旋转摄像头与终端设备的距离从 1cm调整至0.5cm,可以确定与该目标场景对应的操作事情可以为字体增大事件,在根据用户对可旋转摄像头的旋转操作,确定对应字体增大幅度。In addition, the rotatable camera configured in the terminal device may also have a telescopic function. In the same target scene, the corresponding operation event can be determined according to the telescopic distance of the rotatable camera and the rotation operation of the user. For example, after the terminal device starts the rotatable camera, the rotatable camera automatically extends from the terminal device and is fixed at a position 1cm away from the terminal device. At this time, the user can adjust the rotatable camera from a position 1cm away from the terminal device to the distance At a position of 1.5 cm or 0.5 cm of the terminal device, the terminal device can determine the corresponding operation event based on the preset telescopic operation relationship according to the distance between the rotatable camera and the terminal device that is finally monitored. For example, when the target scene is a reading scene, the user can adjust the distance between the rotatable camera and the terminal device from 1cm to 0.5cm, and it can be determined that the operation corresponding to the target scene can be a font increase event. For the rotation operation of the rotatable camera, determine the corresponding font increase.
在步骤S106中,执行操作事件。In step S106, an operation event is executed.
在实施中,在执行完操作事件后,可以关闭可旋转摄像头(即可以将可旋转摄像头收回至终端设备内),当监测到目标场景有所变化,或接收到用户切换指令时,可以再次开启可旋转摄像头,并根据用户的旋转操作,确定此时的目标场景对应的操作事件,并执行该操作事件。In implementation, after the operation event is executed, the rotatable camera can be turned off (that is, the rotatable camera can be retracted into the terminal device), and it can be turned on again when a change in the target scene is detected or a user switching instruction is received The camera can be rotated, and the operation event corresponding to the target scene at this time is determined according to the user's rotation operation, and the operation event is executed.
本说明书实施例提供一种控制方法,通过在当前场景为目标场景的情况下,接收用户对可旋转摄像头的旋转操作,其中,旋转操作包括旋转角度和/或旋转方向,然后基于目标场景,确定与目标场景和旋转操作相对应的操作事件,执行操作事件。这样,在目标场景下,用户只需对可旋转摄像头进行旋转操作,就可以控制终端设备执行对应的操作事件,而不需要多次重复的进行调节操作,提高了对终端的控制效率。同时,也保证了终端设备能准确的根据用户的旋转操作执行操作事件,满足用户的实际使用需求,提高用户体验。The embodiment of this specification provides a control method, by receiving a user's rotation operation on a rotatable camera when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction, and then determines based on the target scene The operation event corresponding to the target scene and the rotation operation is executed. In this way, in the target scenario, the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal. At the same time, it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
实施例二Example two
如图3所示,本说明书实施例提供一种控制方法,该方法的执行主体可以为终端设备,其中,该终端设备配置有可旋转的摄像头,该终端设备可以如个人计算机等设备,也可以如手机、平板电脑等移动终端设备,该终端设备可以为用户使用的终端设备。该方法具体可以包括以下步骤:As shown in Figure 3, the embodiment of this specification provides a control method. The execution subject of the method can be a terminal device. The terminal device is equipped with a rotatable camera. The terminal device can be a device such as a personal computer or Such as mobile terminal devices such as mobile phones and tablet computers, the terminal device may be a terminal device used by the user. The method may specifically include the following steps:
在步骤S302中,在当前场景为目标场景的情况下,启动预定传感器和可旋转摄像头。In step S302, when the current scene is the target scene, a predetermined sensor and a rotatable camera are activated.
其中,预定传感器可以为角度传感器,可以用于监测用户对可旋转摄像头的旋转操作。The predetermined sensor may be an angle sensor, which may be used to monitor the rotation operation of the rotatable camera by the user.
在步骤S304中,通过预定传感器监测用户对可旋转摄像头的旋转操作。In step S304, the user's rotation operation of the rotatable camera is monitored through a predetermined sensor.
在实施中,可以通过预定传感器监测用户对可旋转摄像头的旋转角度和/或旋转方向。如果在预设时间范围内,预定传感器都未监测到用户对可旋转摄像头的旋转操作,则可以关闭预定传感器和可旋转摄像头,当接收到用户 的预设使用指令时,可再次开启预定传感器和可旋转摄像头。In implementation, the user's rotation angle and/or rotation direction of the rotatable camera can be monitored through a predetermined sensor. If the predetermined sensor does not detect the user's rotation operation of the rotatable camera within the preset time range, the predetermined sensor and the rotatable camera can be turned off, and the predetermined sensor and the rotatable camera can be turned on again when the user's preset instruction is received. The camera can be rotated.
在步骤S306中,获取目标场景所属的场景类型。In step S306, the scene type to which the target scene belongs is acquired.
其中,场景类型可以包括音量调节类型、焦距调节类型、字体调节类型、亮度调节类型、对比度调节类型、色温调节类型、图片/视频预览切换类型等,操作事件可以是与目标场景相对的事件,可以包括事件类型、操作参数等,例如操作事件可以为音量增大事件(包括对应的音量调节幅度)、字体缩小事件(包括对应的字体调节幅度)、图片预览切换事件等。Among them, the scene type can include volume adjustment type, focus adjustment type, font adjustment type, brightness adjustment type, contrast adjustment type, color temperature adjustment type, picture/video preview switching type, etc. The operation event can be an event relative to the target scene. Including event type, operation parameters, etc., for example, the operation event may be a volume increase event (including a corresponding volume adjustment range), a font reduction event (including a corresponding font adjustment range), a picture preview switching event, etc.
在实施中,用户可以对不同的目标场景设定对应不同的场景类型,其中,场景类型可以包括音量调节类型、焦距调节类型、字体调节类型、亮度调节类型、对比度调节类型、色温调节类型、图片/视频预览切换类型等。例如,如表2所示,对不同的目标场景,用户可以设定不同或相同的场景类型,当监测到当前场景为目标场景的情况下,可以获取目标场景的所属的场景类型。如,终端设备监测到用户正在使用阅读应用程序进行文字阅读,则可以确定当前场景为阅读场景,对应所属的场景类型可以为字体调节场景,即目标场景所属的场景类型为字体调节类型。In implementation, users can set different target scenes to correspond to different scene types, where the scene types can include volume adjustment type, focus adjustment type, font adjustment type, brightness adjustment type, contrast adjustment type, color temperature adjustment type, picture /Video preview switching type, etc. For example, as shown in Table 2, for different target scenes, the user can set different or the same scene type, and when the current scene is detected as the target scene, the scene type to which the target scene belongs can be obtained. For example, if the terminal device detects that the user is using a reading application for text reading, it can determine that the current scene is a reading scene, and the corresponding scene type can be a font adjustment scene, that is, the scene type to which the target scene belongs is a font adjustment type.
表2Table 2
目标场景Target scene 场景类型Scene type
视频播放场景Video playback scene 音量调节类型Volume adjustment type
视频预览场景Video preview scene 音量调节类型Volume adjustment type
图像拍摄场景Image shooting scene 焦距调节类型Focus adjustment type
视频拍摄场景Video shooting scene 亮度调节类型Brightness adjustment type
阅读场景Reading scene 字体调节类型Font adjustment type
此外,还可以根据接收到的用户的预定切换指令,为用户提供场景类型的输入选择框,以供用户对目标场景所属的场景类型进行切换。例如,预定切换指令可以是双击开机键,当用户使用终端设备进行文字阅读时,根据表2中的目标场景对应的场景类型,可以确定当前场景所属的场景类型为字体调节类型。如果用户此时不需要对字体进行调节,用户可以双击开机键,终端设备在接收到该预设切换指令后,可以在屏幕上为用户提供输入选择框,用户可以根据实际需求,选择对应的场景类型(如用户可以将目标场景所属 的场景类型更改为亮度调节类型),在用户选择了需要切换的场景类型后,终端设备可以提示用户是否保存该场景类型,并根据该场景类型对目标场景所属的场景类型进行更新。In addition, it is also possible to provide the user with an input selection box of the scene type according to the received user's predetermined switching instruction, so that the user can switch the scene type to which the target scene belongs. For example, the predetermined switching instruction may be to double-click the power button. When the user uses the terminal device to read text, according to the scene type corresponding to the target scene in Table 2, the scene type to which the current scene belongs can be determined as the font adjustment type. If the user does not need to adjust the font at this time, the user can double-click the power button. After receiving the preset switching instruction, the terminal device can provide the user with an input selection box on the screen, and the user can select the corresponding scene according to actual needs Type (for example, the user can change the scene type to which the target scene belongs to the brightness adjustment type). After the user selects the scene type that needs to be switched, the terminal device can prompt the user whether to save the scene type, and assign the target scene according to the scene type. The scene types are updated.
在步骤S308中,基于目标场景所属的场景类型,确定与场景类型对应的操作事件的操作类型。In step S308, the operation type of the operation event corresponding to the scene type is determined based on the scene type to which the target scene belongs.
其中,操作事件的操作类型可以是与场景类型相对应,例如,操作事件的操作类型可以是音量调节类型、焦距调节类型、字体调节类型、亮度调节类型、对比度调节类型、色温调节类型、图片/视频预览切换类型等。Among them, the operation type of the operation event may correspond to the scene type, for example, the operation type of the operation event may be volume adjustment type, focus adjustment type, font adjustment type, brightness adjustment type, contrast adjustment type, color temperature adjustment type, picture/ Video preview switching type, etc.
上述步骤S308的具体处理过程可以参见上述步骤S104中的相关内容,再此不再赘述。For the specific processing process of the above step S308, please refer to the relevant content in the above step S104, which will not be repeated here.
在实际应用中,上述步骤S308的处理方式可以多种多样,以下再提供一种可选的实现方式,具体可以参见下述步骤一和步骤二处理。In practical applications, the above-mentioned step S308 can be processed in a variety of ways, and an optional implementation method is provided below. For details, please refer to the following steps 1 and 2 for processing.
步骤一,接收用户对与目标场景所属的场景类型对应的操作事件的操作类型的输入操作。Step 1: Receive a user's input operation on the operation type of the operation event corresponding to the scene type to which the target scene belongs.
在实施中,可以为用户提供输入选择框,用户可以根据实际需求选择操作事件的操作类型。例如,终端设备监测到用户打开了视频播放应用程序并选择了视频进行播放,在播放视频前或在视频播放中,终端设备可以在屏幕中显示输入选择框,如输入选择框中可以包含“音量调节”、“亮度调节”、“色温调节”的标签,用户可以在输入选择框中选择当前所需的操作事件的操作类型,如用户可以选择“色温调节”。同时,在输入选择框中,还可以为用户提供“是否将该操作类型作为视频播放场景对应的操作事件的默认操作类型”的选择框,如果用户选择将此次选择的操作类型(如“色温调节”)作为视频播放场景对应的操作事件的默认操作类型,则当用户再次进入视频播放应用程序观看视频时,终端设备可以将色温调节作为视频播放场景对应的操作事件的操作类型,而不需要再次为用户提供操作类型的输入选择框。In the implementation, the user can be provided with an input selection box, and the user can select the operation type of the operation event according to actual needs. For example, the terminal device detects that the user has opened a video playback application and selected a video to play. Before or during video playback, the terminal device can display an input selection box on the screen. For example, the input selection box can contain "volume With the labels of "adjust", "brightness adjustment", and "color temperature adjustment", the user can select the operation type of the currently required operation event in the input selection box, for example, the user can select "color temperature adjustment". At the same time, in the input selection box, you can also provide the user with a selection box of "whether to use this operation type as the default operation type of the operation event corresponding to the video playback scene". If the user chooses to select the operation type (such as "color temperature Adjust”) as the default operation type of the operation event corresponding to the video playback scene. When the user enters the video playback application again to watch the video, the terminal device can adjust the color temperature as the operation type of the operation event corresponding to the video playback scene, without Provide the user with an input selection box for the operation type again.
此外,当保存了默认操作类型后,如果用户需要对操作事件的操作类型进行更改,可以在预设按键上进行预设操作,以重新启动对操作事件的操作类型的输入功能,即终端设备可以再次接收用户对与目标场景所属的场景类型对应的操作实际的操作类型的输入操作。In addition, when the default operation type is saved, if the user needs to change the operation type of the operation event, the user can perform a preset operation on the preset button to restart the input function of the operation type of the operation event, that is, the terminal device can The user's input operation on the actual operation type corresponding to the scene type to which the target scene belongs is received again.
步骤二,基于输入操作,确定操作事件的操作类型。Step 2: Determine the operation type of the operation event based on the input operation.
在步骤S310中,基于旋转操作和操作类型,确定用于执行操作事件的操作参数。In step S310, based on the rotation operation and the operation type, an operation parameter for executing the operation event is determined.
上述步骤S310的具体处理过程可以参见上述步骤S104中的相关内容,再此不再赘述。For the specific processing process of the foregoing step S310, reference may be made to the related content in the foregoing step S104, which will not be repeated here.
在实际应用中,上述步骤S310的处理方式可以多种多样,以下再提供一种可选的实现方式,具体可以参见下述步骤一~步骤三处理。In practical applications, the above-mentioned step S310 can be processed in various ways, and an optional implementation method is provided below. For details, refer to the following steps 1 to 3 for processing.
步骤一,基于操作类型,确定与操作类型对应的预设换算关系。Step 1: Determine the preset conversion relationship corresponding to the operation type based on the operation type.
其中,预设换算关系可以为基于预定传感器监测可旋转摄像头旋转所得到的数据确定。The preset conversion relationship may be determined based on data obtained by monitoring the rotation of the rotatable camera by a predetermined sensor.
在实施中,不同的操作类型,可以对应不同的预设换算关系,同时,不同的旋转操作得到的数据对应的预设换算关系也可以不同。In implementation, different operation types may correspond to different preset conversion relationships, and at the same time, the preset conversion relationships corresponding to data obtained by different rotation operations may also be different.
例如,音量调节类型对应的预设换算关系可以是旋转角度对应的数据和音量调节幅度之间的换算关系,字体调节类型对应的预设换算关系可以是旋转角度对应的数据和字体调节幅度之间的关系等。For example, the preset conversion relationship corresponding to the volume adjustment type may be the conversion relationship between the data corresponding to the rotation angle and the volume adjustment range, and the preset conversion relationship corresponding to the font adjustment type may be the conversion relationship between the data corresponding to the rotation angle and the font adjustment range. Relationship and so on.
以音量调节类型对应的预设换算关系为例,如图4所示,在图4(a)中,以可旋转摄像头伸出终端设备的初始位置为原点,以顺时针方向排布0度到360度,则对应的预设换算关系可以是预设换算关系1,而在图4(b)中,以可旋转摄像头伸出终端设备的初始位置为原点,在顺时针方向的180度范围内,排布0度到180度,在逆时针方向的180度范围内,排布0度到-180度,则对应的预设换算关系可以是预设换算关系2。Take the preset conversion relationship corresponding to the volume adjustment type as an example. As shown in Figure 4, in Figure 4(a), the initial position of the rotatable camera extending out of the terminal device is taken as the origin, and the arrangement is clockwise from 0° to 360 degrees, the corresponding preset conversion relationship can be preset conversion relationship 1. In Figure 4(b), the initial position of the rotatable camera extending out of the terminal device is taken as the origin, within the range of 180 degrees in the clockwise direction , The arrangement is from 0 degrees to 180 degrees, and within the range of 180 degrees in the counterclockwise direction, from 0 degrees to -180 degrees, the corresponding preset conversion relationship may be preset conversion relationship 2.
步骤二,基于预设换算关系,确定与旋转角度对应的第一操作参数。Step 2: Determine the first operating parameter corresponding to the rotation angle based on the preset conversion relationship.
在实施中,以上述音量调节类型对应的预设换算关系为例,如图4所示,在图4(a)中,基于预设换算关系1,可以对不同的度数换算不同的第一操作参数,如,沿顺时针方向转动1度,则基于预设换算关系1,得到的对应的第一操作参数可以为4格。而在图4(b)中,基于预设换算关系2,可以对不同的度数换算不同的第一操作参数,如,沿逆时针方向转动1度,则基于预设换算关系1,得到的对应的第一操作参数可以为-1格。In the implementation, take the preset conversion relationship corresponding to the above-mentioned volume adjustment type as an example, as shown in FIG. 4, in FIG. 4(a), based on the preset conversion relationship 1, different first operations can be converted for different degrees The parameter, for example, rotates 1 degree in the clockwise direction, based on the preset conversion relationship 1, the corresponding first operating parameter can be 4 grids. In Figure 4(b), based on the preset conversion relationship 2, different first operating parameters can be converted to different degrees. For example, if you rotate 1 degree in the counterclockwise direction, then based on the preset conversion relationship 1, the corresponding The first operating parameter of can be -1 grid.
步骤三,基于第一操作参数和/或旋转方向,确定用于执行操作事件的操 作参数。Step 3: Determine the operation parameter for executing the operation event based on the first operation parameter and/or the rotation direction.
在实施中,可以基于第一操作参数,确定用于执行操作事件的操作参数,例如,以上述音量调节类型对应的预设换算关系为例,在图4(b)中,如果得到的第一参数为-1格,则可以确定用于执行操作事件的操作参数为-1格,即将音量减小一格。In implementation, the operating parameter used to perform the operating event can be determined based on the first operating parameter. For example, taking the preset conversion relationship corresponding to the above-mentioned volume adjustment type as an example, in Figure 4(b), if the first If the parameter is -1 division, it can be determined that the operation parameter used to execute the operation event is -1 division, that is, the volume is reduced by one division.
此外,也可以基于第一操作参数和旋转方向,确定用于执行操作事件的操作参数。以上述音量调节类型对应的预设换算关系为例,在图4(a)中,如果用户的旋转方向为顺时针方向,同时第一操作参数为4格,则用于执行操作事件的操作参数可以为4格,即将音量增加4格。In addition, based on the first operation parameter and the rotation direction, the operation parameter for executing the operation event may also be determined. Take the preset conversion relationship corresponding to the above-mentioned volume adjustment type as an example. In Figure 4(a), if the user's rotation direction is clockwise and the first operation parameter is 4 bars, the operation parameter used to execute the operation event It can be 4 bars, that is, increase the volume by 4 bars.
或者,还可以基于旋转方向,确定用于执行操作事件的操作参数。例如,操作事件可以为图片切换预览事件,如果旋转方向为顺时针方向,则对应的操作参数可以是获取上一张预览图像。Or, based on the direction of rotation, the operating parameters used to execute the operating event can also be determined. For example, the operation event may be a picture switching preview event, and if the rotation direction is clockwise, the corresponding operation parameter may be obtaining the previous preview image.
另外,终端设备中配置的可旋转摄像头可以为前置摄像头,在终端设备中还可以配置有后置摄像头,如果目标场景所属的场景类型为拍摄场景(包括图片拍摄场景或视频拍摄场景,则可以确定与拍摄场景对应的操作事件的操作类型为焦距调节。基于上述步骤一~步骤三,可以确定用于调节后置摄像头的焦距的操作参数。In addition, the rotatable camera configured in the terminal device can be a front camera, and the terminal device can also be configured with a rear camera. If the scene type of the target scene belongs to a shooting scene (including a picture shooting scene or a video shooting scene, you can The operation type of the operation event corresponding to the shooting scene is determined to be focus adjustment. Based on the above steps 1 to 3, the operation parameters for adjusting the focus of the rear camera can be determined.
基于操作参数,对基于后置摄像头获取的预览图像进行焦距调节。Based on the operating parameters, the focus adjustment is performed on the preview image acquired based on the rear camera.
在步骤S312中,基于操作参数和操作类型,执行操作事件。In step S312, an operation event is executed based on the operation parameter and the operation type.
本说明书实施例提供一种控制方法,通过在当前场景为目标场景的情况下,接收用户对可旋转摄像头的旋转操作,其中,旋转操作包括旋转角度和/或旋转方向,然后基于目标场景,确定与目标场景和旋转操作相对应的操作事件,执行操作事件。这样,在目标场景下,用户只需对可旋转摄像头进行旋转操作,就可以控制终端设备执行对应的操作事件,而不需要多次重复的进行调节操作,提高了对终端的控制效率。同时,也保证了终端设备能准确的根据用户的旋转操作执行操作事件,满足用户的实际使用需求,提高用户体验。The embodiment of this specification provides a control method, by receiving a user's rotation operation on a rotatable camera when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction, and then determines based on the target scene The operation event corresponding to the target scene and the rotation operation is executed. In this way, in the target scenario, the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal. At the same time, it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
实施例三Example three
如图5所示,本说明书实施例提供一种控制方法,该方法的执行主体可以为终端设备,其中,该终端设备配置有可伸缩的摄像头,该终端设备可以如个人计算机等设备,也可以如手机、平板电脑等移动终端设备,该终端设备可以为用户使用的终端设备。该方法具体可以包括以下步骤:As shown in FIG. 5, the embodiment of this specification provides a control method. The execution subject of the method may be a terminal device. The terminal device is equipped with a retractable camera. The terminal device may be a device such as a personal computer or Such as mobile terminal devices such as mobile phones and tablet computers, the terminal device may be a terminal device used by the user. The method may specifically include the following steps:
在步骤S502中,在当前场景为目标场景的情况下,接收用户对可伸缩摄像头的伸缩操作。In step S502, if the current scene is the target scene, the user's telescopic operation on the telescopic camera is received.
其中,伸缩操作可以包括可伸缩摄像头伸长或缩短的距离。Among them, the telescopic operation may include the distance extended or shortened by the telescopic camera.
在实施中,在当前场景为目标场景的情况下,可以开启可伸缩摄像头,并将可伸缩摄像头从终端设备内伸出,并接收用户对可伸缩摄像头的伸缩操作。其中,可伸缩摄像头伸长或缩短的距离可以是用户移动可伸缩摄像头的最终位置与可伸缩摄像头从终端设备内伸出时的初始位置之间的距离差值。In implementation, when the current scene is the target scene, the retractable camera can be turned on, extend the retractable camera from the terminal device, and receive the user's telescopic operation on the retractable camera. Wherein, the extension or shortening distance of the retractable camera may be the distance difference between the final position of the user moving the retractable camera and the initial position when the retractable camera extends from the terminal device.
在步骤S504中,基于目标场景,确定与目标场景和伸缩操作相对应的操作事件。In step S504, based on the target scene, an operation event corresponding to the target scene and the scaling operation is determined.
在实施中,用户可以对不同的目标场景设定对应不同的场景类型,针对不同的场景类型,可以根据伸缩操作确定对应的操作事件。例如,目标场景可以为图像拍摄场景,对应的场景类型可以是焦距调节类型或亮度调节类型,根据接收到的伸缩操作,可以确定对应的操作事件。例如,接收到的伸缩操作可以是将可伸缩摄像头伸长一档(一档可以为0.5cm),则对应的操作事件可以是将焦距放大一格,或将亮度调高一档。或者,如果接收到的伸缩操作是将可伸缩摄像头缩短一档,则对应的操作事件可以是将焦距缩小一格,或将亮度调低一档。In implementation, the user can set different target scenes corresponding to different scene types, and for different scene types, the corresponding operation events can be determined according to the scaling operation. For example, the target scene may be an image shooting scene, and the corresponding scene type may be a focus adjustment type or a brightness adjustment type. According to the received telescopic operation, the corresponding operation event may be determined. For example, the received telescopic operation may be to extend the retractable camera by one level (one level may be 0.5 cm), and the corresponding operation event may be to enlarge the focus by one division or increase the brightness by one level. Or, if the received telescopic operation is to shorten the telescopic camera by one level, the corresponding operation event may be to reduce the focal length by one division, or reduce the brightness by one level.
在步骤S506中,执行操作事件。In step S506, an operation event is executed.
在实施中,在执行完操作事件后,可以关闭可伸缩摄像头(即可以将可伸缩摄像头收回至终端设备内),当监测到目标场景有所变化,或接收到用户切换指令时,可以再次开启可伸缩摄像头,并根据用户的伸缩操作,确定此时的目标场景对应的操作事件,并执行该操作事件。In implementation, after the operation event is executed, the retractable camera can be turned off (that is, the retractable camera can be retracted into the terminal device), and it can be turned on again when a change in the target scene is detected or a user switching instruction is received The telescopic camera determines the operation event corresponding to the target scene at this time according to the user's telescopic operation, and executes the operation event.
本说明书实施例提供一种控制方法,通过在当前场景为目标场景的情况下,接收用户对可伸缩摄像头的伸缩操作,其中,伸缩操作包括可伸缩摄像头伸长或缩短的距离,然后基于目标场景,确定与目标场景和伸缩操作相对 应的操作事件,执行操作事件。这样,在目标场景下,用户只需对可伸缩摄像头进行伸缩操作,就可以控制终端设备执行对应的操作事件,而不需要多次重复的进行调节操作,提高了对终端的控制效率。同时,也保证了终端设备能准确的根据用户的旋转操作执行操作事件,满足用户的实际使用需求,提高用户体验。The embodiment of this specification provides a control method by receiving a user's telescopic operation on a telescopic camera when the current scene is the target scene, where the telescopic operation includes the extension or shortening distance of the telescopic camera, and then based on the target scene , Determine the operation event corresponding to the target scene and scaling operation, and execute the operation event. In this way, in the target scenario, the user only needs to perform telescopic operations on the retractable camera to control the terminal device to execute the corresponding operation event, without the need for repeated adjustment operations, which improves the control efficiency of the terminal. At the same time, it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
实施例四Example four
如图6所示,本说明书实施例提供一种控制方法,该方法的执行主体可以为终端设备,其中,该终端设备配置有可伸缩的摄像头,该终端设备可以如个人计算机等设备,也可以如手机、平板电脑等移动终端设备,该终端设备可以为用户使用的终端设备。该方法具体可以包括以下步骤:As shown in FIG. 6, the embodiment of this specification provides a control method. The execution subject of the method may be a terminal device. The terminal device is equipped with a retractable camera. The terminal device may be a device such as a personal computer or Such as mobile terminal devices such as mobile phones and tablet computers, the terminal device may be a terminal device used by the user. The method may specifically include the following steps:
在步骤S602中,在当前场景为目标场景的情况下,启动预定传感器和可伸缩摄像头。In step S602, when the current scene is the target scene, the predetermined sensor and the retractable camera are activated.
其中,预定传感器可以为角度传感器,可以用于监测用户对可伸缩摄像头的伸缩操作。Wherein, the predetermined sensor may be an angle sensor, which may be used to monitor the telescopic operation of the telescopic camera by the user.
在步骤S604中,通过预定传感器监测用户对可伸缩摄像头的伸缩操作。In step S604, the user's telescopic operation of the telescopic camera is monitored through a predetermined sensor.
其中,伸缩操作包括所述可伸缩摄像头伸长或缩短的距离。Wherein, the telescopic operation includes the distance extended or shortened by the telescopic camera.
在步骤S606中,获取目标场景所属的场景类型。In step S606, the scene type to which the target scene belongs is acquired.
在步骤S608中,基于目标场景所属的场景类型,确定与场景类型对应的操作事件的操作类型。In step S608, the operation type of the operation event corresponding to the scene type is determined based on the scene type to which the target scene belongs.
上述步骤S606-S608的具体处理过程可以参见上述实施例一步骤S306-S308中的相关内容,再此不再赘述。For the specific processing procedures of the foregoing steps S606-S608, please refer to the relevant content in the steps S306-S308 of the foregoing embodiment 1, and will not be repeated here.
在步骤S610中,基于伸缩操作和操作类型,确定用于执行操作事件的操作参数。In step S610, based on the scaling operation and the operation type, an operation parameter for executing the operation event is determined.
上述步骤S610的具体处理过程可以参见上述实施例一步骤S104中的相关内容,再此不再赘述。For the specific processing process of the foregoing step S610, reference may be made to the relevant content in the step S104 of the foregoing embodiment 1, which will not be repeated here.
在步骤S612中,基于操作参数和操作类型,执行操作事件。In step S612, an operation event is executed based on the operation parameter and the operation type.
本说明书实施例提供一种控制方法,通过在监测到当前场景为目标场景的情况下,接收用户对可伸缩摄像头的伸缩操作,其中,伸缩操作包括可伸 缩摄像头伸长或缩短的距离,然后基于目标场景,确定与目标场景和伸缩操作相对应的操作事件,执行操作事件。这样,在目标场景下,用户只需对可伸缩摄像头进行伸缩操作,就可以控制终端设备执行对应的操作事件,而不需要多次重复的进行调节操作,提高了对终端的控制效率。同时,也保证了终端设备能准确的根据用户的旋转操作执行操作事件,满足用户的实际使用需求,提高用户体验。The embodiment of this specification provides a control method, by receiving the user's telescopic operation on the telescopic camera when the current scene is monitored as the target scene, where the telescopic operation includes the extension or shortening distance of the telescopic camera, and then based on Target scene, determine the operation event corresponding to the target scene and scaling operation, and execute the operation event. In this way, in the target scenario, the user only needs to perform telescopic operations on the retractable camera to control the terminal device to execute the corresponding operation event, without the need for repeated adjustment operations, which improves the control efficiency of the terminal. At the same time, it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
实施例五Example five
以上为本说明书实施例提供的控制方法,基于同样的思路,本说明书实施例还提供一种控制装置,如图7所示。The above control method provided by the embodiment of this specification, based on the same idea, the embodiment of this specification also provides a control device, as shown in FIG. 7.
该控制装置包括:操作接收模块701、第一确定模块702和第一执行模块703,其中:The control device includes: an operation receiving module 701, a first determining module 702, and a first executing module 703, wherein:
操作接收模块701,用于在当前场景为目标场景的情况下,接收用户对所述可旋转摄像头的旋转操作,其中,所述旋转操作包括旋转角度和/或旋转方向;The operation receiving module 701 is configured to receive a user's rotation operation on the rotatable camera when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction;
第一确定模块702,用于基于所述目标场景,确定与所述目标场景和所述旋转操作相对应的操作事件;The first determining module 702 is configured to determine an operation event corresponding to the target scene and the rotation operation based on the target scene;
第一执行模块703,用于执行所述操作事件。The first execution module 703 is configured to execute the operation event.
在本公开实施例中,所述操作接收模块701,包括:In the embodiment of the present disclosure, the operation receiving module 701 includes:
启动单元,用于所述当前场景为目标场景的情况下,启动预定传感器和所述可旋转摄像头;An activation unit, configured to activate a predetermined sensor and the rotatable camera when the current scene is the target scene;
操作监测单元,用于通过所述预定传感器监测用户对所述可旋转摄像头的旋转操作。The operation monitoring unit is configured to monitor the rotation operation of the rotatable camera by the user through the predetermined sensor.
在本公开实施例中,所述第一确定模块702,包括:In the embodiment of the present disclosure, the first determining module 702 includes:
类型获取单元,用于获取所述目标场景所属的场景类型;The type obtaining unit is configured to obtain the scene type to which the target scene belongs;
类型确定单元,用于基于所述当前场景所属的场景类型,确定与所述场景类型对应的所述操作事件的操作类型;The type determining unit is configured to determine the operation type of the operation event corresponding to the scene type based on the scene type to which the current scene belongs;
参数确定单元,用于基于所述旋转操作和所述操作类型,确定用于执行所述操作事件的操作参数;A parameter determination unit, configured to determine an operation parameter for executing the operation event based on the rotation operation and the operation type;
所述事件执行模块,用于:The event execution module is used to:
基于所述操作参数和所述操作类型,执行所述操作事件。Based on the operation parameter and the operation type, the operation event is executed.
在本公开实施例中,所述可旋转摄像头为前置摄像头,所述终端设备还配置有后置摄像头,所述当前场景所属的场景类型为拍摄场景,In the embodiment of the present disclosure, the rotatable camera is a front camera, the terminal device is further configured with a rear camera, and the scene type to which the current scene belongs is a shooting scene,
所述类型确定单元,用于:The type determining unit is used for:
确定与所述拍摄场景对应的所述操作事件的操作类型为焦距调节;Determining that the operation type of the operation event corresponding to the shooting scene is focus adjustment;
所述基于所述操作参数和所述操作类型,执行所述操作事件,包括:The executing the operation event based on the operation parameter and the operation type includes:
基于所述操作参数,对基于所述后置摄像头获取的预览图像进行焦距调节。Based on the operating parameters, the focus adjustment is performed on the preview image acquired based on the rear camera.
在本公开实施例中,所述参数确定单元,用于:In the embodiment of the present disclosure, the parameter determining unit is configured to:
基于所述操作类型,确定与所述操作类型对应的预设换算关系,所述预设换算关系为基于所述预定传感器监测所述可旋转摄像头旋转所得到的数据确定;Determining a preset conversion relationship corresponding to the operation type based on the operation type, the preset conversion relationship being determined based on data obtained by the predetermined sensor monitoring the rotation of the rotatable camera;
基于所述预设换算关系,确定与所述旋转角度对应的第一操作参数;Determine a first operating parameter corresponding to the rotation angle based on the preset conversion relationship;
基于所述第一操作参数和/或所述旋转方向,确定用于执行所述操作事件的操作参数。Based on the first operating parameter and/or the rotation direction, an operating parameter for executing the operating event is determined.
在本公开实施例中,所述类型确定单元,用于:In the embodiment of the present disclosure, the type determining unit is configured to:
接收用户对与所述当前场景所属的场景类型对应的所述操作事件的操作类型的输入操作;Receiving a user's input operation on the operation type of the operation event corresponding to the scene type to which the current scene belongs;
基于所述输入操作,确定所述操作事件的操作类型。Based on the input operation, the operation type of the operation event is determined.
本公开实施例的控制装置还可执行图1-图4中终端设备执行的方法,并实现终端设备在图1-图4所示实施例的功能,在此不再赘述。The control device of the embodiment of the present disclosure may also execute the method executed by the terminal device in FIGS. 1 to 4, and realize the functions of the terminal device in the embodiment shown in FIGS. 1 to 4, which will not be repeated here.
本说明书实施例提供一种控制装置,通过在当前场景为目标场景的情况下,接收用户对可旋转摄像头的旋转操作,其中,旋转操作包括旋转角度和/或旋转方向,然后基于目标场景,确定与目标场景和旋转操作相对应的操作事件,执行操作事件。这样,在目标场景下,用户只需对可旋转摄像头进行旋转操作,就可以控制终端设备执行对应的操作事件,而不需要多次重复的进行调节操作,提高了对终端的控制效率。同时,也保证了终端设备能准确的根据用户的旋转操作执行操作事件,满足用户的实际使用需求,提高用户 体验。The embodiment of this specification provides a control device that receives a user's rotation operation on a rotatable camera when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction, and then determines based on the target scene The operation event corresponding to the target scene and the rotation operation is executed. In this way, in the target scenario, the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal. At the same time, it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
实施例六Example Six
以上为本说明书实施例提供的控制方法,基于同样的思路,本说明书实施例还提供一种控制装置,该控制装置配置有可伸缩摄像头,如图8所示。The above control method provided by the embodiment of this specification, based on the same idea, the embodiment of this specification also provides a control device configured with a retractable camera, as shown in FIG. 8.
该控制装置包括:伸缩监测模块801、第二确定模块802和第二执行模块803,其中:The control device includes: a telescopic monitoring module 801, a second determining module 802, and a second executing module 803, wherein:
伸缩监测模块801,用于在当前场景为目标场景的情况下,接收用户对所述可伸缩摄像头的伸缩操作,其中,所述伸缩操作包括所述可伸缩摄像头伸长或缩短的距离;The telescopic monitoring module 801 is configured to receive the telescopic operation of the telescopic camera by the user when the current scene is the target scene, wherein the telescopic operation includes the distance extended or shortened by the telescopic camera;
第二确定模块802,用于基于所述目标场景,确定与所述目标场景和所述伸缩操作相对应的操作事件;The second determining module 802 is configured to determine an operation event corresponding to the target scene and the scaling operation based on the target scene;
第二执行模块803,用于执行所述操作事件。The second execution module 803 is configured to execute the operation event.
本公开实施例的控制装置还可执行图5-图6中终端设备执行的方法,并实现终端设备在图5-图6所示实施例的功能,在此不再赘述。The control device of the embodiment of the present disclosure may also execute the method executed by the terminal device in FIGS. 5 to 6 and realize the functions of the terminal device in the embodiment shown in FIGS. 5 to 6, which will not be repeated here.
本说明书实施例提供一种控制装置,通过在当前场景为目标场景的情况下,接收用户对可伸缩摄像头的伸缩操作,其中,伸缩操作包括可伸缩摄像头伸长或缩短的距离,然后基于目标场景,确定与目标场景和伸缩操作相对应的操作事件,执行操作事件。这样,在目标场景下,用户只需对可伸缩摄像头进行伸缩操作,就可以控制终端设备执行对应的操作事件,而不需要多次重复的进行调节操作,提高了对终端的控制效率。同时,也保证了终端设备能准确的根据用户的旋转操作执行操作事件,满足用户的实际使用需求,提高用户体验。The embodiment of the present specification provides a control device that receives a user's telescopic operation of a telescopic camera when the current scene is the target scene, where the telescopic operation includes the distance extended or shortened by the telescopic camera, and then based on the target scene , Determine the operation event corresponding to the target scene and scaling operation, and execute the operation event. In this way, in the target scenario, the user only needs to perform telescopic operations on the retractable camera to control the terminal device to execute the corresponding operation event, without the need for repeated adjustment operations, which improves the control efficiency of the terminal. At the same time, it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
实施例七Example Seven
图9为实现本公开各个实施例的一种终端设备的硬件结构示意图,FIG. 9 is a schematic diagram of the hardware structure of a terminal device implementing various embodiments of the present disclosure,
该终端设备900包括但不限于:射频单元901、网络模块902、音频输出单元903、输入单元904、传感器905、显示单元906、用户输入单元907、接口单元908、存储器909、处理器910、以及电源911等部件。本领域技术 人员可以理解,图9中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The terminal device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and Power 911 and other components. Those skilled in the art can understand that the structure of the terminal device shown in FIG. 9 does not constitute a limitation on the terminal device, and the terminal device may include more or fewer components than shown in the figure, or combine certain components, or different components Layout. In the embodiments of the present disclosure, terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,处理器910,用于在在当前场景为目标场景的情况下,接收用户对所述可旋转摄像头的旋转操作,其中,所述旋转操作包括旋转角度和/或旋转方向;The processor 910 is configured to receive a rotation operation of the rotatable camera by the user when the current scene is the target scene, where the rotation operation includes a rotation angle and/or a rotation direction;
处理器910,还用于基于所述目标场景,确定与所述目标场景和所述旋转操作相对应的操作事件;The processor 910 is further configured to determine an operation event corresponding to the target scene and the rotation operation based on the target scene;
处理器910,还用于执行所述操作事件。The processor 910 is further configured to execute the operation event.
此外,处理器910,还用于在所述当前场景为目标场景的情况下,启动预定传感器和所述可旋转摄像头;In addition, the processor 910 is further configured to activate a predetermined sensor and the rotatable camera when the current scene is the target scene;
另外,所述处理器910,还用于通过所述预定传感器监测用户对所述可旋转摄像头的旋转操作。In addition, the processor 910 is further configured to monitor the rotation operation of the rotatable camera by the user through the predetermined sensor.
另外,所述处理器910,还用于获取所述目标场景所属的场景类型;In addition, the processor 910 is further configured to obtain the scene type to which the target scene belongs;
此外,所述处理器910,还用于基于所述目标场景所属的场景类型,确定与所述场景类型对应的所述操作事件的操作类型;In addition, the processor 910 is further configured to determine the operation type of the operation event corresponding to the scene type based on the scene type to which the target scene belongs;
另外,所述处理器910,还用于基于所述旋转操作和所述操作类型,确定用于执行所述操作事件的操作参数;In addition, the processor 910 is further configured to determine an operation parameter for executing the operation event based on the rotation operation and the operation type;
此外,所述处理器910,还用于基于所述操作参数和所述操作类型,执行所述操作事件。In addition, the processor 910 is further configured to execute the operation event based on the operation parameter and the operation type.
此外,所述处理器910,还用于当达到预设光线监测周期时,通过光敏传感器获取当前所处环境的光线强度。In addition, the processor 910 is also configured to obtain the light intensity of the current environment through the photosensitive sensor when the preset light monitoring period is reached.
此外,所述可旋转摄像头为前置摄像头,所述终端设备还配置有后置摄像头,所述当前场景所属的场景类型为拍摄场景,In addition, the rotatable camera is a front camera, the terminal device is also configured with a rear camera, and the scene type to which the current scene belongs is a shooting scene,
所述处理器910,还用于确定与所述拍摄场景对应的所述操作事件的操作类型为焦距调节;The processor 910 is further configured to determine that the operation type of the operation event corresponding to the shooting scene is focus adjustment;
所述处理器910,还用于基于所述操作参数,对基于所述后置摄像头获取的预览图像进行焦距调节。The processor 910 is further configured to adjust the focus of the preview image acquired based on the rear camera based on the operating parameter.
另外,所述处理器910,还用于基于所述操作类型,确定与所述操作类型对应的预设换算关系,所述预设换算关系为基于所述预定传感器监测所述可旋转摄像头旋转所得到的数据确定;In addition, the processor 910 is further configured to determine a preset conversion relationship corresponding to the operation type based on the operation type, and the preset conversion relationship is based on the predetermined sensor monitoring the rotation of the rotatable camera. The data obtained is confirmed;
此外,所述处理器910,还用于基于所述预设换算关系,确定与所述旋转角度对应的第一操作参数;In addition, the processor 910 is further configured to determine a first operation parameter corresponding to the rotation angle based on the preset conversion relationship;
另外,所述处理器910,还用于基于所述第一操作参数和/或所述旋转方向,确定用于执行所述操作事件的操作参数。In addition, the processor 910 is further configured to determine an operation parameter for executing the operation event based on the first operation parameter and/or the rotation direction.
此外,所述处理器910,还用于接收用户对与所述目标场景所属的场景类型对应的所述操作事件的操作类型的输入操作;In addition, the processor 910 is further configured to receive a user input operation on the operation type of the operation event corresponding to the scene type to which the target scene belongs;
另外,所述处理器910,还用于基于所述输入操作,确定所述操作事件的操作类型。In addition, the processor 910 is further configured to determine the operation type of the operation event based on the input operation.
此外,所述终端设备900还可以执行以下处理过程:In addition, the terminal device 900 may also perform the following processing procedures:
所述终端设备910,用于在当前场景为目标场景的情况下,接收用户对所述可伸缩摄像头的伸缩操作,其中,所述伸缩操作包括所述可伸缩摄像头伸长或缩短的距离;The terminal device 910 is configured to receive a user's telescopic operation on the retractable camera when the current scene is the target scene, where the telescopic operation includes the distance extended or shortened by the retractable camera;
此外,所述终端设备910,还用于基于所述目标场景,确定与所述目标场景和所述伸缩操作相对应的操作事件;In addition, the terminal device 910 is further configured to determine an operation event corresponding to the target scene and the scaling operation based on the target scene;
此外,所述终端设备910,还用于执行所述操作事件。In addition, the terminal device 910 is also used to execute the operation event.
本公开实施例提供一种终端设备,通过在当前场景为目标场景的情况下,接收用户对可旋转摄像头的旋转操作,其中,旋转操作包括旋转角度和/或旋转方向,然后基于目标场景,确定与目标场景和旋转操作相对应的操作事件,执行操作事件。这样,在目标场景下,用户只需对可旋转摄像头进行旋转操作,就可以控制终端设备执行对应的操作事件,而不需要多次重复的进行调节操作,提高了对终端的控制效率。同时,也保证了终端设备能准确的根据用户的旋转操作执行操作事件,满足用户的实际使用需求,提高用户体验。Embodiments of the present disclosure provide a terminal device that receives a user's rotation operation on a rotatable camera when the current scene is a target scene, where the rotation operation includes a rotation angle and/or a rotation direction, and then determines based on the target scene The operation event corresponding to the target scene and the rotation operation is executed. In this way, in the target scenario, the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal. At the same time, it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
应理解的是,本公开实施例中,射频单元901可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器910处理;另外,将上行的数据发送给基站。通常,射频单元901包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器 等。此外,射频单元901还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present disclosure, the radio frequency unit 901 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 910; Uplink data is sent to the base station. Generally, the radio frequency unit 901 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 901 can also communicate with the network and other devices through a wireless communication system.
终端设备通过网络模块902为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal device provides users with wireless broadband Internet access through the network module 902, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元903可以将射频单元901或网络模块902接收的或者在存储器909中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元903还可以提供与终端设备900执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元903包括扬声器、蜂鸣器以及受话器等。The audio output unit 903 can convert the audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output it as sound. Moreover, the audio output unit 903 may also provide audio output related to a specific function performed by the terminal device 900 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
输入单元904用于接收音频或视频信号。输入单元904可以包括图形处理器(Graphics Processing Unit,GPU)9041和麦克风9042,图形处理器9041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元906上。经图形处理器9041处理后的图像帧可以存储在存储器909(或其它存储介质)中或者经由射频单元901或网络模块902进行发送。麦克风9042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元901发送到移动通信基站的格式输出。The input unit 904 is used to receive audio or video signals. The input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042. The graphics processor 9041 is used for the image of a still picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame may be displayed on the display unit 906. The image frames processed by the graphics processor 9041 may be stored in the memory 909 (or other storage medium) or sent via the radio frequency unit 901 or the network module 902. The microphone 9042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 901 for output in the case of a telephone call mode.
终端设备900还包括至少一种传感器905,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板9061的亮度,接近传感器可在终端设备900移动到耳边时,关闭显示面板9061和/或背光。作为运动传感器的一种,加速计传感器可监测各个方向上(一般为三轴)加速度的大小,静止时可监测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器905还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal device 900 further includes at least one sensor 905, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 9061 according to the brightness of the ambient light. The proximity sensor can close the display panel 9061 and the display panel 9061 when the terminal device 900 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can monitor the magnitude of acceleration in various directions (usually three-axis), and can monitor the magnitude and direction of gravity when stationary, and can be used to identify terminal device posture (such as horizontal and vertical screen switching, related games , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 905 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元906用于显示由用户输入的信息或提供给用户的信息。显示单元906可包括显示面板9061,可以采用液晶显示器(Liquid Crystal Display, LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板9061。The display unit 906 is used to display information input by the user or information provided to the user. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元907可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元907包括触控面板9071以及其他输入设备9072。触控面板9071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板9071上或在触控面板9071附近的操作)。触控面板9071可包括触摸监测装置和触摸控制器两个部分。其中,触摸监测装置监测用户的触摸方位,并监测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸监测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器910,接收处理器910发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板9071。除了触控面板9071,用户输入单元907还可以包括其他输入设备9072。具体地,其他输入设备9072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 907 may be used to receive input digital or character information, and generate key signal input related to user settings and function control of the terminal device. Specifically, the user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071, also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 9071 or near the touch panel 9071. operating). The touch panel 9071 may include two parts, a touch monitoring device and a touch controller. Among them, the touch monitoring device monitors the user's touch position, and monitors the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch monitoring device, converts it into contact coordinates, and then sends it To the processor 910, the command sent by the processor 910 is received and executed. In addition, the touch panel 9071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 9071, the user input unit 907 may also include other input devices 9072. Specifically, other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板9071可覆盖在显示面板9061上,当触控面板9071监测到在其上或附近的触摸操作后,传送给处理器910以确定触摸事件的类型,随后处理器910根据触摸事件的类型在显示面板9061上提供相应的视觉输出。虽然在图9中,触控面板9071与显示面板9061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板9071与显示面板9061集成而实现终端设备的输入和输出功能,具体此处不做限定。Further, the touch panel 9071 can cover the display panel 9061. When the touch panel 9071 detects a touch operation on or near it, it transmits it to the processor 910 to determine the type of the touch event. The type of event provides corresponding visual output on the display panel 9061. Although in FIG. 9, the touch panel 9071 and the display panel 9061 are used as two independent components to realize the input and output functions of the terminal device, in some embodiments, the touch panel 9071 and the display panel 9061 can be integrated The implementation of the input and output functions of the terminal device is not specifically limited here.
接口单元908为外部装置与终端设备900连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元908可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备900内的一个或多个元件或者可以用于在终端设备900和外部装置之间传输数据。The interface unit 908 is an interface for connecting an external device and the terminal device 900. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 908 may be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 900 or may be used to connect to the terminal device 900 and external Transfer data between devices.
存储器909可用于存储软件程序以及各种数据。存储器909可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器909可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones. In addition, the memory 909 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器910是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器909内的软件程序和/或模块,以及调用存储在存储器909内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器910可包括一个或多个处理单元;可选地,处理器910可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器910中。The processor 910 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 909, and calls data stored in the memory 909 , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole. The processor 910 may include one or more processing units; optionally, the processor 910 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 910.
终端设备900还可以包括给各个部件供电的电源911(比如电池),可选地,电源911可以通过电源管理系统与处理器910逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal device 900 may also include a power source 911 (such as a battery) for supplying power to various components. Optionally, the power source 911 may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
可选地,本公开实施例还提供一种终端设备,包括处理器910,存储器909,存储在存储器909上并可在所述处理器910上运行的计算机程序,该计算机程序被处理器910执行时实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present disclosure further provides a terminal device, including a processor 910, a memory 909, a computer program stored in the memory 909 and running on the processor 910, and the computer program is executed by the processor 910 Each process of the foregoing control method embodiment can be realized at a time, and the same technical effect can be achieved. In order to avoid repetition, it will not be repeated here.
实施例八Example eight
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned control method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat it here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
本公开实施例提供一种计算机可读存储介质,通过在当前场景为目标场景的情况下,接收用户对可旋转摄像头的旋转操作,其中,旋转操作包括旋 转角度和/或旋转方向,然后基于目标场景,确定与目标场景和旋转操作相对应的操作事件,执行操作事件。这样,在目标场景下,用户只需对可旋转摄像头进行旋转操作,就可以控制终端设备执行对应的操作事件,而不需要多次重复的进行调节操作,提高了对终端的控制效率。同时,也保证了终端设备能准确的根据用户的旋转操作执行操作事件,满足用户的实际使用需求,提高用户体验。The embodiments of the present disclosure provide a computer-readable storage medium, which receives a user's rotation operation on a rotatable camera when the current scene is a target scene, where the rotation operation includes a rotation angle and/or a rotation direction, and is then based on the target scene. Scene, determine the operation event corresponding to the target scene and rotation operation, and execute the operation event. In this way, in the target scenario, the user can control the terminal device to execute the corresponding operation event by simply rotating the rotatable camera without requiring repeated adjustment operations, which improves the control efficiency of the terminal. At the same time, it also ensures that the terminal device can accurately execute the operation event according to the user's rotation operation, meet the user's actual use needs, and improve the user experience.
本领域内的技术人员应明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present disclosure can be provided as methods, systems, or computer program products. Therefore, the present disclosure may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本公开是参照根据本公开实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present disclosure is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/ 输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, product or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or include elements inherent to this process, method, commodity, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element.
本领域技术人员应明白,本公开的实施例可提供为方法、系统或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
以上所述仅为本公开的实施例而已,并不用于限制本公开。对于本领域技术人员来说,本公开可以有各种更改和变化。凡在本公开的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本公开的权利要求范围之内。The foregoing descriptions are merely embodiments of the present disclosure, and are not used to limit the present disclosure. For those skilled in the art, the present disclosure can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.

Claims (14)

  1. 一种控制方法,所述方法应用于配置有可旋转摄像头的终端设备,所述方法包括:A control method, the method is applied to a terminal device equipped with a rotatable camera, the method includes:
    在当前场景为目标场景的情况下,接收用户对所述可旋转摄像头的旋转操作,其中,所述旋转操作包括旋转角度和/或旋转方向;In a case where the current scene is the target scene, receiving a user's rotation operation on the rotatable camera, where the rotation operation includes a rotation angle and/or a rotation direction;
    基于所述目标场景,确定与所述目标场景和所述旋转操作相对应的操作事件;Based on the target scene, determining an operation event corresponding to the target scene and the rotation operation;
    执行所述操作事件。Perform the operation event.
  2. 根据权利要求1所述的方法,其中,所述在当前场景为目标场景的情况下,接收用户对所述可旋转摄像头的旋转操作,包括:The method according to claim 1, wherein, when the current scene is the target scene, receiving a user's rotation operation on the rotatable camera comprises:
    在所述当前场景为目标场景的情况下,启动预定传感器和所述可旋转摄像头;In the case that the current scene is the target scene, activate a predetermined sensor and the rotatable camera;
    通过所述预定传感器监测用户对所述可旋转摄像头的旋转操作。The rotation operation of the rotatable camera by the user is monitored by the predetermined sensor.
  3. 根据权利要求2所述的方法,其中,所述基于所述目标场景,确定与所述目标场景和所述旋转操作相对应的操作事件,包括:The method according to claim 2, wherein the determining an operation event corresponding to the target scene and the rotation operation based on the target scene comprises:
    获取所述目标场景所属的场景类型;Acquiring the scene type to which the target scene belongs;
    基于所述目标场景所属的场景类型,确定与所述场景类型对应的所述操作事件的操作类型;Determine the operation type of the operation event corresponding to the scene type based on the scene type to which the target scene belongs;
    基于所述旋转操作和所述操作类型,确定用于执行所述操作事件的操作参数;Based on the rotation operation and the operation type, determining operation parameters for executing the operation event;
    所述执行所述操作事件,包括:The execution of the operation event includes:
    基于所述操作参数和所述操作类型,执行所述操作事件。Based on the operation parameter and the operation type, the operation event is executed.
  4. 根据权利要求3所述的方法,其中,所述基于所述旋转操作和所述操作类型,确定用于执行所述操作事件的操作参数,包括:The method according to claim 3, wherein the determining an operation parameter for executing the operation event based on the rotation operation and the operation type comprises:
    基于所述操作类型,确定与所述操作类型对应的预设换算关系,所述预设换算关系为基于所述预定传感器监测所述可旋转摄像头旋转所得到的数据确定;Determining a preset conversion relationship corresponding to the operation type based on the operation type, the preset conversion relationship being determined based on data obtained by the predetermined sensor monitoring the rotation of the rotatable camera;
    基于所述预设换算关系,确定与所述旋转角度对应的第一操作参数;Determine a first operating parameter corresponding to the rotation angle based on the preset conversion relationship;
    基于所述第一操作参数和/或所述旋转方向,确定用于执行所述操作事件的操作参数。Based on the first operating parameter and/or the rotation direction, an operating parameter for executing the operating event is determined.
  5. 根据权利要求3所述的方法,其中,所述基于所述目标场景所属的场景类型,确定与所述场景类型对应的所述操作事件的操作类型,包括:The method according to claim 3, wherein the determining the operation type of the operation event corresponding to the scene type based on the scene type to which the target scene belongs comprises:
    接收用户对与所述目标场景所属的场景类型对应的所述操作事件的操作类型的输入操作;Receiving a user input operation on the operation type of the operation event corresponding to the scene type to which the target scene belongs;
    基于所述输入操作,确定所述操作事件的操作类型。Based on the input operation, the operation type of the operation event is determined.
  6. 一种控制方法,所述方法应用于配置有可伸缩摄像头的终端设备,所述方法包括:A control method, the method is applied to a terminal device equipped with a retractable camera, the method includes:
    在当前场景为目标场景的情况下,接收用户对所述可伸缩摄像头的伸缩操作,其中,所述伸缩操作包括所述可伸缩摄像头伸长或缩短的距离;In the case that the current scene is the target scene, receiving a user's telescopic operation of the telescopic camera, where the telescopic operation includes the distance extended or shortened by the telescopic camera;
    基于所述目标场景,确定与所述目标场景和所述伸缩操作相对应的操作事件;Based on the target scene, determine an operation event corresponding to the target scene and the scaling operation;
    执行所述操作事件。Perform the operation event.
  7. 一种控制装置,所述装置配置有可旋转摄像头,所述装置包括:A control device, the device is equipped with a rotatable camera, and the device includes:
    操作接收模块,用于在当前场景为目标场景的情况下,接收用户对所述可旋转摄像头的旋转操作,其中,所述旋转操作包括旋转角度和/或旋转方向;The operation receiving module is configured to receive a rotation operation of the rotatable camera by the user when the current scene is the target scene, wherein the rotation operation includes a rotation angle and/or a rotation direction;
    第一确定模块,用于基于所述目标场景,确定与所述目标场景和所述旋转操作相对应的操作事件;A first determining module, configured to determine an operation event corresponding to the target scene and the rotation operation based on the target scene;
    第一执行模块,用于执行所述操作事件。The first execution module is used to execute the operation event.
  8. 根据权利要求7所述的装置,其中,所述操作接收模块,包括:The device according to claim 7, wherein the operation receiving module comprises:
    启动单元,用于所述当前场景为目标场景的情况下,启动预定传感器和所述可旋转摄像头;An activation unit, configured to activate a predetermined sensor and the rotatable camera when the current scene is the target scene;
    操作监测单元,用于通过所述预定传感器监测用户对所述可旋转摄像头的旋转操作。The operation monitoring unit is configured to monitor the rotation operation of the rotatable camera by the user through the predetermined sensor.
  9. 根据权利要求8所述的装置,其中,所述第一确定模块,包括:The apparatus according to claim 8, wherein the first determining module comprises:
    类型获取单元,用于获取所述目标场景所属的场景类型;The type obtaining unit is configured to obtain the scene type to which the target scene belongs;
    类型确定单元,用于基于所述目标场景所属的场景类型,确定与所述场景类型对应的所述操作事件的操作类型;A type determining unit, configured to determine the operation type of the operation event corresponding to the scene type based on the scene type to which the target scene belongs;
    参数确定单元,用于基于所述旋转操作和所述操作类型,确定用于执行所述操作事件的操作参数;A parameter determination unit, configured to determine an operation parameter for executing the operation event based on the rotation operation and the operation type;
    所述事件执行模块,用于:The event execution module is used to:
    基于所述操作参数和所述操作类型,执行所述操作事件。Based on the operation parameter and the operation type, the operation event is executed.
  10. 一种控制装置,所述装置配置有可伸缩摄像头,所述装置包括:A control device, the device is equipped with a retractable camera, and the device includes:
    伸缩监测模块,用于在当前场景为目标场景的情况下,接收用户对所述可伸缩摄像头的伸缩操作,其中,所述伸缩操作包括所述可伸缩摄像头伸长或缩短的距离;The telescopic monitoring module is configured to receive a user's telescopic operation on the telescopic camera when the current scene is the target scene, wherein the telescopic operation includes the distance extended or shortened by the telescopic camera;
    第二确定模块,用于基于所述目标场景,确定与所述目标场景和所述伸缩操作相对应的操作事件;A second determining module, configured to determine an operation event corresponding to the target scene and the scaling operation based on the target scene;
    第二执行模块,用于执行所述操作事件。The second execution module is used to execute the operation event.
  11. 一种终端设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的控制方法的步骤。A terminal device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor. The computer program is executed by the processor to implement any of claims 1 to 5 One of the steps of the control method.
  12. 一种终端设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求6中所述的控制方法的步骤。A terminal device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor to realize the method described in claim 6 Control method steps.
  13. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的控制方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the control method according to any one of claims 1 to 5 are realized.
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求6中所述的控制方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the control method as claimed in claim 6 are realized.
PCT/CN2020/080689 2019-06-20 2020-03-23 Control method and apparatus, and terminal device WO2020253295A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910536510.3A CN110213489B (en) 2019-06-20 2019-06-20 Control method, control device and terminal equipment
CN201910536510.3 2019-06-20

Publications (1)

Publication Number Publication Date
WO2020253295A1 true WO2020253295A1 (en) 2020-12-24

Family

ID=67793678

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/080689 WO2020253295A1 (en) 2019-06-20 2020-03-23 Control method and apparatus, and terminal device

Country Status (2)

Country Link
CN (1) CN110213489B (en)
WO (1) WO2020253295A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291781A (en) * 2022-07-01 2022-11-04 厦门立林科技有限公司 Parameter adjusting method, device and system for equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213489B (en) * 2019-06-20 2021-06-15 维沃移动通信有限公司 Control method, control device and terminal equipment
CN110930878B (en) * 2019-11-11 2021-06-18 维沃移动通信有限公司 Control method of flexible screen and electronic equipment
CN111372047B (en) * 2020-03-02 2021-02-26 杭州普维云技术有限公司 Intelligent head shaking machine camera
CN116264864A (en) * 2020-08-07 2023-06-16 海信视像科技股份有限公司 Display equipment and display method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100020182A1 (en) * 2008-07-23 2010-01-28 Asustek Computer Inc. Portable electronic device
CN104679412A (en) * 2015-02-10 2015-06-03 广东欧珀移动通信有限公司 Incoming call processing method and mobile terminal
CN105808077A (en) * 2016-03-09 2016-07-27 广东欧珀移动通信有限公司 Method for controlling page turning, and mobile terminal
CN106060369A (en) * 2016-08-04 2016-10-26 广东欧珀移动通信有限公司 Camera module and terminal
CN108388314A (en) * 2018-04-04 2018-08-10 深圳天珑无线科技有限公司 A kind of electronic equipment and its CCD camera assembly
CN110213489A (en) * 2019-06-20 2019-09-06 维沃移动通信有限公司 A kind of control method, device and terminal device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7856251B2 (en) * 2003-04-24 2010-12-21 Samsung Electronics Co., Ltd. Device and method for using a rotating key and controlling a display in a mobile terminal
KR20060065344A (en) * 2004-12-10 2006-06-14 엘지전자 주식회사 Means for jog-dial of mobile phone using camera and method thereof
CN202601139U (en) * 2012-06-05 2012-12-12 西安诺瓦电子科技有限公司 Control input component of light-emitting diode (LED) display screen portable control device
CN104461313A (en) * 2013-09-23 2015-03-25 深圳桑菲消费通信有限公司 Control method and device for mobile terminal and mobile terminal
EP3250997A1 (en) * 2015-03-08 2017-12-06 Apple Inc. User interface using a rotatable input mechanism
CN109416499B (en) * 2016-06-27 2021-10-01 富士胶片株式会社 Camera and setting method thereof
CN206004725U (en) * 2016-08-26 2017-03-08 深迪半导体(上海)有限公司 A kind of adjustable mobile phone of photographic head

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100020182A1 (en) * 2008-07-23 2010-01-28 Asustek Computer Inc. Portable electronic device
CN104679412A (en) * 2015-02-10 2015-06-03 广东欧珀移动通信有限公司 Incoming call processing method and mobile terminal
CN105808077A (en) * 2016-03-09 2016-07-27 广东欧珀移动通信有限公司 Method for controlling page turning, and mobile terminal
CN106060369A (en) * 2016-08-04 2016-10-26 广东欧珀移动通信有限公司 Camera module and terminal
CN108388314A (en) * 2018-04-04 2018-08-10 深圳天珑无线科技有限公司 A kind of electronic equipment and its CCD camera assembly
CN110213489A (en) * 2019-06-20 2019-09-06 维沃移动通信有限公司 A kind of control method, device and terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291781A (en) * 2022-07-01 2022-11-04 厦门立林科技有限公司 Parameter adjusting method, device and system for equipment

Also Published As

Publication number Publication date
CN110213489B (en) 2021-06-15
CN110213489A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
US20220276909A1 (en) Screen projection control method and electronic device
WO2020253295A1 (en) Control method and apparatus, and terminal device
US20210058704A1 (en) Speaker control method and mobile terminal
US11675442B2 (en) Image processing method and flexible-screen terminal
CN111372126B (en) Video playing method, device and storage medium
WO2019174628A1 (en) Photographing method and mobile terminal
KR102554191B1 (en) Information processing method and terminal
WO2021104321A1 (en) Image display method and electronic device
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
CN109348019B (en) Display method and device
WO2019184947A1 (en) Image viewing method and mobile terminal
US11625164B2 (en) Display method and terminal device
US11165950B2 (en) Method and apparatus for shooting video, and storage medium
US11842029B2 (en) Image display method and mobile terminal
WO2022028241A1 (en) Preview cover generation method and electronic device
CN111147919A (en) Play adjustment method, electronic equipment and computer readable storage medium
CN111031253B (en) Shooting method and electronic equipment
WO2021037074A1 (en) Audio output method and electronic apparatus
US20220351330A1 (en) Image cropping method and electronic device
CN107678672A (en) A kind of display processing method and mobile terminal
WO2021017730A1 (en) Screenshot method and terminal device
CN110941378B (en) Video content display method and electronic equipment
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
WO2020151745A1 (en) Mobile terminal and control method
WO2020156119A1 (en) Application program interface adjustment method and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20827837

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20827837

Country of ref document: EP

Kind code of ref document: A1