Parameter adjustment method and device
By obtaining the extension length of the stylus flexible screen and adjusting the target parameters, the problem of single function of the flexible screen is solved, and the function expansion and user experience are improved.
Patent Information
- Application Number
- CN202010997670.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-21
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2040-09-21
AI Technical Summary
In the prior art, the flexible screen on the stylus has a single function and is only used to display images, which lacks diversity and practicality.
The functions of the flexible screen are enriched by obtaining the extension length of the flexible screen on the stylus and adjusting the target parameters of the target device according to the preset correspondence relationship.
The function expansion of the flexible screen is realized, providing a more convenient user experience, especially for stylus or other electronic devices without touch functions.
Smart Images

Figure CN112083820B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a parameter adjustment method and device. Background Art
[0002] With the development of smart terminal (such as mobile phones, tablet computers, etc.) technology, smart terminals have penetrated into users' lives, studies and work, and provided users with a lot of convenience.
[0003] In order to make it easier for users to operate, many smart terminals are equipped with touch screens. In addition to being able to operate the touch screen with the user's fingers, the touch screen can also be operated with a stylus. With the development of electronic technology, the functions of the stylus are becoming more and more numerous. It is no longer limited to operating the touch screen. Some styluses are also equipped with flexible screens for displaying images.
[0004] However, in the prior art, the flexible screen on the stylus is only used to display images and has a relatively simple function. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a parameter adjustment method and device, which can solve the problem of single function of the flexible screen set on the stylus in the prior art to a certain extent.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a parameter adjustment method, the parameter adjustment method comprising:
[0008] Obtaining a first length of the flexible screen on the stylus pen extending out of the stylus pen body; wherein the stylus pen comprises: the stylus pen body and the flexible screen, the stylus pen body is provided with a cavity, the flexible screen is provided in the cavity, and the flexible screen can extend out of the cavity or be retracted into the cavity;
[0009] According to a preset correspondence between the extended length of the flexible screen and the parameter value of the target parameter of the target device, the parameter value of the target parameter of the target device is adjusted to a parameter value corresponding to the first length; wherein the target device is the stylus pen or other electronic device that has established a communication connection with the stylus pen.
[0010] In a second aspect, an embodiment of the present application provides a parameter adjustment device, the parameter adjustment device comprising:
[0011] An acquisition module is used to acquire a first length of the flexible screen on the stylus pen extending out of the stylus pen body; wherein the stylus pen comprises: the stylus pen body and the flexible screen, the stylus pen body is provided with a cavity, the flexible screen is provided in the cavity, and the flexible screen can be extended out of the cavity or retracted into the cavity;
[0012] An adjustment module is used to adjust the parameter value of the target parameter of the target device to a parameter value corresponding to the first length according to a preset correspondence between the extended length of the flexible screen and the parameter value of the target parameter of the target device; wherein the target device is the stylus or other electronic device that has established a communication connection with the stylus.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the parameter adjustment method described in the first aspect.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the parameter adjustment method described in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the parameter adjustment method as described in the first aspect.
[0016] In the embodiment of the present application, the parameter value of the target parameter is adjusted by pulling out or retracting the flexible screen, thereby enriching the function of the flexible screen. In addition, such parameter adjustment operation is relatively simple, and for a stylus or other electronic device without a touch function, it is more convenient for the user to adjust the parameter value of the target parameter, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flow chart of the parameter adjustment method provided in the embodiment of the present application;
[0018] Figure 2 It is one of the structural schematic diagrams of the stylus provided in the embodiment of the present application;
[0019] Figure 3 This is the second structural schematic diagram of the stylus provided in the embodiment of the present application;
[0020] Figure 4 is a schematic block diagram of a parameter adjustment device provided in an embodiment of the present application;
[0021] Figure 5 It is one of the schematic block diagrams of the electronic device provided in the embodiment of the present application;
[0022] Figure 6 This is the second schematic block diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0025] The parameter adjustment method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0026] Figure 1 Detailed description of the invention is given in detail below. It is a flow chart of a parameter adjustment method provided in an embodiment of the present application, and the parameter adjustment method is applied to a stylus pen.
[0027] Among them, Figure 2 As shown in FIG. 1 , the stylus pen 200 includes a stylus pen body 201 and a flexible screen 202. The stylus pen body 201 is provided with a cavity, and the flexible screen 202 is provided in the cavity, and the flexible screen 202 can extend out of the cavity (i.e., extend out of the stylus pen body 201) or be retracted into the cavity. The stylus pen 200 is also provided with an opening 203, and the flexible screen 202 can extend out of the stylus pen body 201 from the opening 203. The extended state can be referred to in FIG. Figure 2 The portion extending out of the stylus body 201 can also be retracted into the cavity through the opening 203. The retracted state can be referred to Figure 3 .
[0028] like Figure 1As shown, the parameter adjustment method may include:
[0029] Step 101: Obtain a first length of the flexible screen on the stylus pen extending out of the stylus pen body.
[0030] As for the method for measuring the length of the flexible screen extending out of the stylus body, for example, an infrared transmitter can be set at the opening, and an infrared receiver can be set at the end where the flexible screen can extend out of the opening, and the extension length can be calculated based on the emission time and reception time of the infrared ray.
[0031] Step 102: According to a preset correspondence between the extended length of the flexible screen and the parameter value of the target parameter of the target device, the parameter value of the target parameter of the target device is adjusted to a parameter value corresponding to the first length.
[0032] The target device described here is the stylus or other electronic devices that have established a communication connection with the stylus, that is, in the embodiment of the present application, the parameter value of the target parameter of the stylus can be adjusted according to the extended length of the flexible screen, and the parameter value of the target parameter of other electronic devices that have established a communication connection with the stylus can also be adjusted according to the extended length of the flexible screen. The target parameters described here may include, but are not limited to, at least one of: focal length, volume, flash brightness, and screen brightness.
[0033] In the embodiment of the present application, the parameter value of the target parameter is adjusted by pulling out or retracting the flexible screen, thereby enriching the function of the flexible screen. In addition, such parameter adjustment operation is relatively simple, and for a stylus or other electronic device without a touch function, it is more convenient for the user to adjust the parameter value of the target parameter, thereby improving the user experience.
[0034] Optionally, when the target parameter is focal length, the preset corresponding relationship between the extended length of the flexible screen and the focal length of the target camera may be:
[0035] When the extended length of the flexible screen is equal to 0, the focal length of the target camera is a default focal length value greater than 0;
[0036] When the extended length of the flexible screen is greater than 0 and less than or equal to L0, the preset corresponding relationship between the extended length of the flexible screen and the focal length of the target camera is: n1=L2 / L0*n;
[0037] When the extended length of the flexible screen is greater than L0, the preset corresponding relationship between the extended length of the flexible screen and the focal length of the target camera is: n1=n.
[0038] Among them, the target camera described here is the camera used for current shooting on the target device. The shooting described here can be: taking pictures or recording videos. n1 represents the focal length value of the target camera corresponding to the extended length of the flexible screen. n represents the maximum focal length of the target camera. L2 represents the extended length of the flexible screen (corresponding to the first length). L0 represents the extended length of the flexible screen corresponding to the maximum focal length of the target camera. Among them, the total length of the flexible screen is L1, L1≥L0>0.
[0039] Thus, step 102: adjusting the parameter value of the target parameter of the target device to a parameter value corresponding to the first length according to a preset correspondence between the extended length of the flexible screen and the parameter value of the target parameter of the target device, may include:
[0040] When the first length is equal to 0, the focal length of the target camera is adjusted to the default focal length value;
[0041] When the first length is greater than 0 and less than or equal to L0, the focal length of the target camera is adjusted to: L2 / L0*n;
[0042] When the first length is greater than L0, the focal length of the target camera is adjusted to n.
[0043] Among them, when adjusting the volume, screen brightness, flash brightness and other parameters according to the extended length of the flexible screen, the adjustment logic is similar to the logic of adjusting the focal length. In order to avoid repetition, it will not be repeated here. It should be noted that when the first length is equal to 0, the parameter values of the volume, screen brightness and flash brightness are the currently set parameter values.
[0044] Optionally, when the target parameter is focal length and the target device is the stylus, it can be set that: L1>L0>0.
[0045] When taking pictures with the stylus, after the flexible screen is stretched out, the longer the stretched length is, the more uneven the force on the stylus may be, the more likely it is to shake, and the worse the quality of the captured image. Therefore, in order to reduce the occurrence of shaking, in an embodiment of the present application, the extended length of the flexible screen corresponding to the maximum focal length of the target camera can be limited, that is, L1>L0. This can reduce the length of the flexible screen stretched by the user, thereby alleviating the uneven force on the stylus and reducing the occurrence of shaking.
[0046] Optionally, when the target parameter is a focal length, step 102: adjusting the parameter value of the target parameter of the target device to a parameter value corresponding to the first length according to a preset correspondence between the extended length of the flexible screen and the parameter value of the target parameter of the target device, may further include:
[0047] According to the preset correspondence between the extended length of the flexible screen and the parameter variable of the target camera, the target parameter variable value corresponding to the first length is determined; the sum of the default focal length value of the target camera and the target parameter variable value is determined as the target focal length value; and the focal length of the target camera is adjusted to the target focal length value.
[0048] The default focal length value of the target camera is the minimum focal length value of the target camera, and is also the focal length value of the target camera when the first length is 0.
[0049] In an embodiment of the present application, a corresponding relationship can be pre-established between the extended length of the flexible screen and the focal length variable, and the focal length of the target camera can be adjusted according to the focal length variable corresponding to the extended length.
[0050] Optionally, when the target parameter is focal length, after obtaining a first length of the flexible screen extending out of the stylus body, the parameter adjustment method further includes: when the first length is greater than 0, displaying a preview image in the target display area.
[0051] Among them, the target display area is the display area of the flexible screen that extends out of the stylus body and has a length less than or equal to the L0 part.
[0052] In the embodiment of the present application, when the focal length is adjusted according to the extended length of the flexible screen, the preview image captured by the target camera can be displayed on the stretched flexible screen for the user to view. Moreover, in the case of L1>L0, the portion of the extended length exceeding L0 (i.e., the portion extended later) can be in the screen-off state, so that, firstly, the user can be reminded that the maximum adjustment focal length has been reached, and secondly, the display area in the working state can be reduced, thereby achieving the purpose of saving power consumption.
[0053] Optionally, when displaying the preview image on the stretched flexible screen, the current corresponding focal length value can also be displayed at the same time to remind the user.
[0054] Optionally, the stylus pen is also provided with a shooting button. After adjusting the focal length, the shooting button can be pressed to shoot while keeping the extended length of the flexible screen unchanged, thereby obtaining a captured image.
[0055] Optionally, after obtaining the captured image, the parameter adjustment method may further include: displaying the captured image; when it is detected that the flexible screen has a retraction action, cropping the image content displayed by the retracted part before the retraction; when an extension action is detected within a preset time length after the retraction action of the flexible screen, restoring the image content displayed by the re-extended part before the retraction and that was cropped.
[0056] In the embodiment of the present application, in addition to adjusting the focal length by extending the flexible screen, the image content can be cropped by retracting the flexible screen after shooting. The image cropping operation is simple and convenient for users. After cropping the image content, if you want to restore all or part of the cropped image content, you can stretch out the flexible screen again, and the cropped image content displayed before the retraction will be restored.
[0057] Optionally, in addition to the above-mentioned image cropping method, a cropping frame of a preset shape can be displayed on the captured image, and a gravity sensor can be set on the stylus to adjust the position of the cropping frame through gravity sensing. Then, based on the current state of the flexible screen (the extended length of the flexible screen is less than the maximum extended length), the size of the cropping frame is adjusted by stretching the flexible screen or retracting the second length of the flexible screen. After determining the size of the cropping frame, the image content outside the cropping frame is cropped and the image content within the cropping frame is retained.
[0058] In summary, in the embodiment of the present application, the parameter value of the target parameter is adjusted by pulling out or retracting the flexible screen, thereby enriching the function of the flexible screen. In addition, such parameter adjustment operation is relatively simple, and for a stylus or other electronic device without a touch function, it is more convenient for the user to adjust the parameter value of the target parameter, thereby improving the user experience.
[0059] It should be noted that the parameter adjustment method provided in the embodiment of the present application can be executed by a parameter adjustment device or a control module in the parameter adjustment device for executing the parameter adjustment method. In the embodiment of the present application, the parameter adjustment device provided in the embodiment of the present application is described by taking the parameter adjustment device executing the parameter adjustment method as an example.
[0060] Figure 4 It is a schematic block diagram of a parameter adjustment device provided in an embodiment of the present application.
[0061] Among them, Figure 2 As shown in FIG. 1 , the stylus pen 200 includes a stylus pen body 201 and a flexible screen 202. The stylus pen body 201 is provided with a cavity, and the flexible screen 202 is provided in the cavity, and the flexible screen 202 can extend out of the cavity (i.e., extend out of the stylus pen body 201) or be retracted into the cavity. The stylus pen 200 is also provided with an opening 203, and the flexible screen 202 can extend out of the stylus pen body 201 from the opening 203. The extended state can be referred to in FIG. Figure 2 The portion extending out of the stylus body 201 can also be retracted into the cavity through the opening 203. The retracted state can be referred to Figure 3 .
[0062] like Figure 4As shown, the parameter adjustment device includes:
[0063] The acquisition module 401 is used to acquire a first length of the flexible screen on the stylus pen extending out of the stylus pen body.
[0064] The adjustment module 402 is used to adjust the parameter value of the target parameter of the target device to a parameter value corresponding to the first length according to a preset correspondence between the extended length of the flexible screen and the parameter value of the target parameter of the target device.
[0065] The target device is the stylus pen or other electronic device that has established a communication connection with the stylus pen.
[0066] Optionally, the target parameter includes at least one of focal length, volume, screen brightness and flash brightness.
[0067] Optionally, when the target parameter is focal length and the target device is the stylus, the adjusting module 402 includes:
[0068] The first adjustment unit is used to adjust the focal length of the target camera to a default focal length value greater than 0 when the first length is equal to 0.
[0069] The second adjustment unit is used to adjust the focal length of the target camera to: L2 / L0*n when the first length is greater than 0 and less than or equal to L0.
[0070] The third adjustment unit is used to adjust the focal length of the target camera to n when the first length is greater than L0.
[0071] Among them, the target camera is set on the stylus; n represents the maximum focal length of the target camera; L2 represents the first length; L0 represents the extended length of the flexible screen corresponding to the maximum focal length of the target camera; wherein L1>L0>0, L1 represents the total length of the flexible screen.
[0072] Optionally, the parameter adjustment device further includes:
[0073] The first display module is used to display the preview image in the target display area when the first length is greater than 0.
[0074] Among them, the target display area is the display area of the flexible screen that extends out of the stylus body and has a length less than or equal to the L0 part.
[0075] Optionally, the parameter adjustment device further includes:
[0076] The second display module is used to display the captured image.
[0077] The image cropping module is used to crop the image content displayed before the retracted part is retracted when it is detected that the flexible screen has a retracted action.
[0078] An image recovery module is used to recover the cropped image content displayed before the retraction of the re-extended part when an extension action is detected within a preset time period after the retraction action of the flexible screen.
[0079] In summary, in the embodiment of the present application, the parameter value of the target parameter is adjusted by pulling out or retracting the flexible screen, thereby enriching the function of the flexible screen. In addition, such parameter adjustment operation is relatively simple, and for a stylus or other electronic device without a touch function, it is more convenient for the user to adjust the parameter value of the target parameter, thereby improving the user experience.
[0080] The parameter adjustment device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device. For example, the electronic device 600 can be a stylus, and the stylus can include: a stylus body and a flexible screen. A cavity is provided on the stylus body, and the flexible screen is provided in the cavity, and the flexible screen can be extended out of the cavity or retracted into the cavity.
[0081] The parameter adjustment device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0082] The parameter adjustment device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented in the parameter adjustment method embodiment are not described again here.
[0083] Alternatively, if Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501, a memory 502, and a program or instruction stored in the memory 502 and executable on the processor 501. When the program or instruction is executed by the processor 501, each process of the above-mentioned parameter adjustment method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0084] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device described above.
[0085] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0086] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610.
[0087] Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0088] Among them, the sensor 605 is used to: obtain a first length of the flexible screen on the stylus extending out of the stylus body; the processor 610 is used to: adjust the parameter value of the target parameter of the target device to a parameter value corresponding to the first length according to a preset correspondence between the extended length of the flexible screen and the parameter value of the target parameter of the target device.
[0089] The target device is the stylus pen or other electronic device that has established a communication connection with the stylus pen.
[0090] Optionally, the processor 610 is also used to: when the first length is equal to 0, adjust the focal length of the target camera to a default focal length value greater than 0; when the first length is greater than 0 and less than or equal to L0, adjust the focal length of the target camera to: L2 / L0*n; when the first length is greater than L0, adjust the focal length of the target camera to n.
[0091] Among them, the target camera is set on the stylus; n represents the maximum focal length of the target camera; L2 represents the first length; L0 represents the extended length of the flexible screen corresponding to the maximum focal length of the target camera; wherein L1>L0>0, L1 represents the total length of the flexible screen.
[0092] Optionally, the display unit 606 is configured to: when the first length is greater than 0, display a preview image in a target display area.
[0093] Among them, the target display area is the display area of the flexible screen that extends out of the stylus body and has a length less than or equal to the L0 part.
[0094] Optionally, the display unit 606 is also used to: display the captured image; the processor 610 is also used to: when it is detected that the flexible screen has a retraction action, crop the image content displayed before the retracted part; when an extension action is detected within a preset time period after the retraction action of the flexible screen, restore the image content displayed before the retraction of the re-extended part and that was cropped.
[0095] In the embodiment of the present application, the parameter value of the target parameter is adjusted by pulling out or retracting the flexible screen, thereby enriching the function of the flexible screen. In addition, such parameter adjustment operation is relatively simple, and for a stylus or other electronic device without a touch function, it is more convenient for the user to adjust the parameter value of the target parameter, thereby improving the user experience.
[0096] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 609 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 610 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 610.
[0097] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned parameter adjustment method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0098] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0099] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned parameter adjustment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0100] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0101] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0103] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A parameter adjustment method, characterized in that: The parameter adjustment method comprises: Obtaining a first length of the flexible screen on the stylus pen extending out of the stylus pen body; wherein the stylus pen comprises: the stylus pen body and the flexible screen, the stylus pen body is provided with a cavity, the flexible screen is provided in the cavity, and the flexible screen can extend out of the cavity or be retracted into the cavity; According to a preset correspondence between the extended length of the flexible screen and the parameter value of the target parameter of the target device, adjusting the parameter value of the target parameter of the target device to a parameter value corresponding to the first length; Displaying the captured image, and displaying a cropping frame of a preset shape on the captured image; The stylus is also provided with a gravity sensor, and the position of the cropping frame is adjusted through gravity sensing; On the basis that the extended length of the flexible screen is less than the maximum extended length, adjusting the size of the cropping frame by stretching the flexible screen or retracting the second length of the flexible screen; After determining the size of the cropping frame, cropping the image content outside the cropping frame and retaining the image content within the cropping frame; When an extending action is detected within a preset time period after the retracting action of the flexible screen, the cropped image content displayed before the retracting of the retracted portion is restored; The target device is the stylus pen or other electronic device that has established a communication connection with the stylus pen.
2. The parameter adjustment method according to claim 1, characterized in that: The target parameter includes at least one of focal length, volume, screen brightness and flash brightness.
3. The parameter adjustment method according to claim 1, characterized in that: In a case where the target parameter is a focal length and the target device is the stylus, adjusting the parameter value of the target parameter of the target device to a parameter value corresponding to the first length according to a preset correspondence between the extended length of the flexible screen and the parameter value of the target parameter of the target device, includes: When the first length is equal to 0, adjusting the focal length of the target camera to a default focal length value greater than 0; When the first length is greater than 0 and less than or equal to L0, the focal length of the target camera is adjusted to: L2 / L0*n; When the first length is greater than L0, adjusting the focal length of the target camera to n; Among them, the target camera is set on the stylus; n represents the maximum focal length of the target camera; L2 represents the first length; L0 represents the extended length of the flexible screen corresponding to the maximum focal length of the target camera; wherein L1>L0>0, L1 represents the total length of the flexible screen.
4. The parameter adjustment method according to claim 3, characterized in that: After obtaining a first length of the flexible screen extending out of the stylus body, the parameter adjustment method further includes: When the first length is greater than 0, displaying a preview image in the target display area; Among them, the target display area is the display area of the flexible screen that extends out of the stylus body and has a length less than or equal to the L0 part.
5. The parameter adjustment method according to claim 3, characterized in that: After adjusting the parameter value of the target parameter of the target device to a parameter value corresponding to the first length, the parameter adjustment method further includes: When it is detected that the flexible screen has a retracting action, the image content displayed by the retracted part before the retracting is cropped.
6. A parameter adjustment device, characterized in that: The parameter adjustment device comprises: An acquisition module is used to acquire a first length of the flexible screen on the stylus pen extending out of the stylus pen body; wherein the stylus pen comprises: the stylus pen body and the flexible screen, the stylus pen body is provided with a cavity, the flexible screen is provided in the cavity, and the flexible screen can be extended out of the cavity or retracted into the cavity; an adjustment module, configured to adjust the parameter value of the target parameter of the target device to a parameter value corresponding to the first length according to a preset correspondence between the extended length of the flexible screen and the parameter value of the target parameter of the target device; wherein the target device is the stylus pen or other electronic device having a communication connection with the stylus pen; A second display module is used to display the captured image and display a cropping frame of a preset shape on the captured image; The stylus pen is also provided with a gravity sensor, and the adjustment module is further used to adjust the position of the cropping frame by gravity sensing, and to adjust the size of the cropping frame by stretching the flexible screen or retracting the second length of the flexible screen on the basis that the extended length of the flexible screen is less than the maximum extended length; An image cropping module, used to crop the image content outside the cropping frame and retain the image content within the cropping frame after determining the size of the cropping frame; An image recovery module is used to recover the cropped image content displayed before the retraction of the re-extended part when an extension action is detected within a preset time period after the retraction action of the flexible screen.
7. The parameter adjustment device according to claim 6, characterized in that: The target parameters also include: focal length.
8. The parameter adjustment device according to claim 6, characterized in that: In the case where the target parameter is focal length and the target device is the stylus, the adjustment module includes: A first adjustment unit, configured to adjust the focal length of the target camera to a default focal length value greater than 0 when the first length is equal to 0; A second adjustment unit, configured to adjust the focal length of the target camera to: L2 / L0*n when the first length is greater than 0 and less than or equal to L0; A third adjustment unit, configured to adjust the focal length of the target camera to n when the first length is greater than L0; Among them, the target camera is set on the stylus; n represents the maximum focal length of the target camera; L2 represents the first length; L0 represents the extended length of the flexible screen corresponding to the maximum focal length of the target camera; wherein L1>L0>0, L1 represents the total length of the flexible screen.
9. The parameter adjustment device according to claim 8, characterized in that: The parameter adjustment device also includes: A first display module, configured to display a preview image in a target display area when the first length is greater than 0; Among them, the target display area is the display area of the flexible screen that extends out of the stylus body and has a length less than or equal to the L0 part.
10. The parameter adjustment device according to claim 8, characterized in that: The parameter adjustment device also includes: The image cropping module is also used to crop the image content displayed on the retracted part before it is retracted when it is detected that the flexible screen has a retracted action.
11. An electronic device, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the parameter adjustment method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Electronic equipment
CN111474809A
Intelligent pen
CN204515608U