WO2022057118A1 - 屏幕内容的放大方法、设备及计算机可读存储介质 - Google Patents

屏幕内容的放大方法、设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2022057118A1
WO2022057118A1 PCT/CN2020/136321 CN2020136321W WO2022057118A1 WO 2022057118 A1 WO2022057118 A1 WO 2022057118A1 CN 2020136321 W CN2020136321 W CN 2020136321W WO 2022057118 A1 WO2022057118 A1 WO 2022057118A1
Authority
WO
WIPO (PCT)
Prior art keywords
finger
image
area
user
screen content
Prior art date
Application number
PCT/CN2020/136321
Other languages
English (en)
French (fr)
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 歌尔股份有限公司
Priority to US18/044,985 priority Critical patent/US20230359338A1/en
Publication of WO2022057118A1 publication Critical patent/WO2022057118A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/163Wearable computers, e.g. on a belt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1686Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being an integrated camera
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/0304Detection arrangements using opto-electronic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • G06F3/0425Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means using a single imaging device like a video camera for tracking the absolute position of a single or a plurality of objects with respect to an imaged reference surface, e.g. video camera imaging a display or a projection screen, a table or a wall surface, on which a computer generated image is displayed or projected
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G21/00Input or output devices integrated in time-pieces
    • G04G21/08Touch switches specially adapted for time-pieces
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G9/00Visual time or date indication means
    • G04G9/0064Visual time or date indication means in which functions not related to time can be displayed
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04108Touchless 2D- digitiser, i.e. digitiser detecting the X/Y position of the input means, finger or stylus, also when it does not touch, but is proximate to the digitiser's interaction surface without distance measurement in the Z direction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04805Virtual magnifying lens, i.e. window or frame movable on top of displayed information to enlarge it for better reading or selection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/24Indexing scheme for image data processing or generation, in general involving graphical user interfaces [GUIs]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person

Definitions

  • the present application relates to the field of wristband display and mobile terminals, and in particular, to a method, device and computer-readable storage medium for enlarging screen content.
  • the screen content enlargement methods mainly include the overall enlargement method and the touch position enlargement method.
  • the overall enlargement method is mainly suitable for electronic devices with larger screens such as mobile terminals.
  • the overall enlargement brings a poor experience effect to the user, and is not conducive to the user's operation.
  • the touch position magnification method mainly recognizes the touch position where the user's finger touches the screen, and then enlarges and displays the screen content corresponding to the touch position. When the user's finger touches the screen, part of the display content on the screen is blocked, which makes the user experience poor effect. It can be seen from this that the experience effect of the current screen content magnification method is poor.
  • the main purpose of the present application is to provide a method, device and computer-readable storage medium for enlarging screen content, which aims to solve the technical problem of poor experience effect of the current method for enlarging screen content.
  • the present application provides a method for enlarging screen content, and the method for enlarging screen content includes the following steps:
  • the size data of the touch screen is determined, the corresponding position to be enlarged is determined based on the size data and the position coordinates, and the screen content of the position area corresponding to the position to be enlarged is enlarged based on the magnifying function.
  • the step of determining the corresponding position to be enlarged based on the size data and the position coordinates includes:
  • the position to be enlarged in the touch screen is determined according to the position coordinates and the position mapping multiple.
  • the step of amplifying the screen content of the location area corresponding to the to-be-magnified location based on the magnifying function includes:
  • the corresponding magnification is determined according to the distance, and the screen content of the position area corresponding to the to-be-magnified position is magnified by the magnification based on the magnification function.
  • the step of determining the position coordinates of the user's finger in the area image based on the finger image includes:
  • the position coordinates of the user's finger in the area image are determined based on the finger image.
  • the step of determining the position coordinates of the user's finger in the area image based on the finger image includes:
  • the positional coordinates of the user's finger in the area image are determined based on the positional relationship and the proportioning relationship.
  • the method further includes:
  • the method further includes:
  • the amplifier function is turned off.
  • the step of detecting whether there is a finger image corresponding to the user's finger in the area image further includes:
  • the amplifier function is turned off.
  • the present application also provides an electronic device, the electronic device includes a memory, a processor, and a program for enlarging screen content stored on the memory and running on the processor, the screen When the content enlargement program is executed by the processor, the steps of the above-mentioned screen content enlargement method are implemented.
  • the present application also provides a computer-readable storage medium, on which an enlarging program for screen content is stored, and when the enlarging program for screen content is executed by a processor, the above-mentioned The steps of the enlarging method of the screen content described above.
  • the present application realizes that after detecting the activation instruction of the amplifier function, the amplifier function is activated, and the camera device is activated to collect the regional image of the preset area, and to detect whether there is a finger image corresponding to the user's finger in the regional image; If there is a finger image in the image, the position coordinates of the user's finger in the area image are determined based on the finger image; the size data of the touch screen is determined, the corresponding position to be enlarged is determined based on the size data and position coordinates, and the corresponding position to be enlarged is enlarged based on the amplifier function.
  • the screen content of the location area is activated, and the camera device is activated to collect the regional image of the preset area, and to detect whether there is a finger image corresponding to the user's finger in the regional image. If there is a finger image in the image, the position coordinates of the user's finger in the area image are determined based on the finger image; the size data of the touch screen is determined, the corresponding position to be
  • the present application detects whether there is a finger image in the area image of the preset area. If a finger image is detected, it is determined according to the size data of the touch screen and the position coordinates of the user's finger. Touch the corresponding position to be magnified on the screen, and then zoom in on the screen content of the position area corresponding to the position to be magnified.
  • the user can move the corresponding position to be magnified on the touch screen by moving the user's finger, and the position area corresponding to the position to be magnified The screen content of the touch screen is enlarged, and the user's finger is not required to touch the screen, thereby preventing the user's finger from covering the screen content on the touch screen.
  • the present application determines the corresponding position to be enlarged according to the size data of the touch screen, and the corresponding position to be enlarged is determined. Partial magnification of the location area is performed to optimize the magnification effect of electronic devices with small screens, thereby solving the problem of poor screen content magnification of electronic devices with small screens, and improving the user experience.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for enlarging screen content of the present application
  • Fig. 2 is the system block diagram of the electronic equipment of the present application.
  • FIG. 3 is a schematic diagram of the use of a method for enlarging screen content of the present application.
  • Fig. 4 is the operation realization flow chart of the enlargement method of the screen content of the present application.
  • FIG. 5 is a schematic structural diagram of a device for enlarging screen content of the present application.
  • FIG. 6 is a schematic structural diagram of a hardware operating environment involved in the solution of the embodiment of the present application.
  • FIG. 1 is a schematic flowchart of the first embodiment of the method for enlarging screen contents of the present application.
  • FIG. 2 is a system block diagram of an electronic device of the present application.
  • FIG. 3 is the screen of the present application. Schematic diagram of the use of the enlargement method of the content.
  • This embodiment of the present application provides an embodiment of a method for enlarging screen content. It should be noted that, although a logical sequence is shown in the flowchart, under certain data, the shown and shown sequence may be completed in a different sequence. or the described steps.
  • Methods for enlarging screen content include:
  • Step S10 after detecting the activation instruction of the amplifier function, activate the amplifier function, and start the camera device to collect an area image of a preset area, and detect whether there is a finger image corresponding to the user's finger in the area image.
  • the electronic device is composed of, but not limited to, a CPU module (Central Processing Unit, central processing unit), a camera device module (camera device) and a Touch module (touch).
  • the central processing unit is used for connecting and communicating with the camera device and with the touch module, the camera device is used for capturing an area image of a preset area, and the touch module is used for enabling the magnifying function of the touch screen.
  • the electronic device After the electronic device is powered on and initialized, the electronic device includes but is not limited to wearable devices such as watches and bracelets, and mobile terminals such as mobile phones and trackers. Click on the designated area of the touch screen of the electronic device, and the touch module transmits the corresponding prompt information to the central processing unit, indicating that the start command of the amplifier function of the electronic device has been triggered. At the same time, the touch module activates the amplifier function of the touch screen, but does not touch A screen magnifier corresponding to the magnifier function is displayed on the screen, where the screen magnifier is a virtual screen magnifier corresponding to the magnifier function.
  • the central processing unit After the central processing unit detects the start instruction of the amplifier function, it turns on the camera device in the electronic device, the camera device collects the regional image of the preset area, and the central processor detects whether there is a finger corresponding to the user's finger in the regional image collected by the camera device image, if the central processor detects that there is a finger image corresponding to the user's finger in the area image, the central processor determines that the user needs to enlarge the corresponding screen content in the touch screen, and enlarges the screen content through the magnifying function. If the central processing unit detects that there is no finger image corresponding to the user's finger in the area image, the central processing unit determines that the user touches the touch screen by mistake, and turns off the magnifier function and the camera device.
  • the preset number of times, the designated area and the preset area are set by themselves according to user needs, which is not limited in this embodiment. It should be noted that, by default, the preset number of times in this embodiment is 3 times, and the preset area is 3 times. And the designated area is the area directly above the camera device.
  • the touch module After the touch module recognizes that the user taps the touch screen three times in a row, it will immediately send a prompt message to the central processing unit, and the central processing unit will immediately start the camera device to shoot the preset area. If it is placed in the preset area, if the central processor immediately detects whether there is a finger image in the area image collected by the camera device, it will cause a misjudgment.
  • the camera device is set to delay the first preset The preset area is photographed for the duration, and the central processing unit detects whether there is a finger image corresponding to the user's finger in the area image within the second preset duration. There is no finger image, and the central processing unit determines that the user has touched the touch screen by mistake, turning off the magnifier function and the camera device.
  • the first preset duration and the second preset duration are set by themselves according to user needs, which is not limited in this embodiment. It should be noted that, by default, the first preset duration in this embodiment is 2s (seconds). ), the second preset duration is 3s.
  • Step S20 if it is detected that the finger image exists in the area image, determine the position coordinates of the user's finger in the area image based on the finger image.
  • the central processor determines the position coordinates of the user's finger in the area image according to the position and size of the finger image in the area image, and then According to the position coordinates corresponding to the user's finger, it is determined that the user needs to enlarge the screen content of the corresponding position area on the touch screen, and the screen magnifier corresponding to the magnifier function is displayed in the area corresponding to the touch screen, and then the screen magnifier is used to enlarge the touch screen.
  • the screen content of the location area is determined by the central processor.
  • step S20 includes:
  • Step a if it is detected that the finger image exists in the area image, then detect whether the finger image is within a preset edge position of the area image;
  • Step b if it is detected that the finger image is within the preset edge position of the regional image, then detect whether the image ratio of the finger image in the regional image is less than or equal to a preset ratio;
  • Step c if it is detected that the image ratio of the finger image in the area image is less than or equal to a preset ratio, determine the position coordinates of the user's finger in the area image based on the finger image.
  • the central processing unit detects whether the finger image is within the preset edge position of the area image. If the central processing unit detects that the finger image is within the area image within the preset edge position of If the image ratio of the image is greater than the preset ratio, the central processor determines that the distance between the user's finger and the touch screen is too close, and sends a corresponding prompt message to prompt the user to adjust the distance between the user's finger and the touch screen.
  • the central processor determines that the proportion of the finger image in the area image is less than or equal to the preset ratio, determines that the distance between the user's finger and the touch screen is correct, then determines the position coordinates of the user's finger in the area image according to the finger image, and Displays the screen magnifier corresponding to the magnifier function at the preset position in the touch screen. If the central processor detects that the finger image is outside the preset edge position of the area image, the central processor determines that the area where the user's finger is located is an invalid area, and sends a corresponding prompt message to prompt the user to adjust the user's finger to the correct area.
  • the preset edge position, the preset ratio, and the preset position are set according to the actual situation, which is not limited in this embodiment.
  • the CPU will display the screen magnifier corresponding to the magnifier function on the touch screen only when it detects that there is a finger image corresponding to the user's finger in the area image. , although the magnifier function is activated, the screen magnifier corresponding to the magnifier function is not displayed on the touch screen.
  • the method for enlarging the screen content also includes:
  • Step d if it is detected that the finger image does not exist in the area image, a prompt message indicating that the user's finger is not detected is issued;
  • Step e detecting whether the user's finger exists in the preset area within the second preset time period
  • Step f if it is detected that the user's finger does not exist in the preset area within the second preset time period, turn off the activation instruction of the amplifier function.
  • the central processing unit if the central processing unit detects that there is no finger image corresponding to the user's finger in the area image, the central processing unit sends a corresponding prompt message to prompt the user to adjust the user's finger to the preset area, and detects that within the second preset duration It is set whether there is a user's finger in the area. If the central processing unit detects that there is no user's finger in the preset area within the second preset time period, the central processing unit turns off the amplifier function and the camera device.
  • the central processor determines that the user's finger exists in the preset area within the second preset time period, and displays the screen magnifier corresponding to the magnifier function at the corresponding position on the touch screen.
  • step c includes:
  • Step g determining the positional relationship between the finger image and the area image, and determining the proportioning relationship between the finger image and the area image;
  • Step h determining the positional coordinates of the user's finger in the area image based on the positional relationship and the proportioning relationship.
  • the central processing unit determines the coverage area of the finger image in the area image, determines the orientation of the finger image in the area image through the coverage area, where the orientation includes but is not limited to southeast, northeast, southwest and northwest, and then determines that the finger image is in the area image.
  • the proportion of the orientation in the area image, the length and width of the proportion are converted into the abscissa and ordinate corresponding to the orientation, and the position coordinates of the user's finger in the area image are determined according to the abscissa and the ordinate.
  • Step S30 Determine the size data of the touch screen, determine the corresponding position to be enlarged based on the size data and the position coordinates, and amplify the screen content of the position area corresponding to the position to be enlarged based on the magnifying function.
  • the central processing unit obtains the device data in the electronic device, and by analyzing the device data, obtains the size data of the electronic device corresponding to the touch screen, and determines the corresponding position mapping multiple and magnification according to the size data, where the position mapping multiple is the position projection zoom.
  • the corresponding position to be magnified in the touch screen according to the position mapping multiple and the position coordinates corresponding to the user's finger, and then display the screen magnifier corresponding to the magnifier function at the to-be-magnified position, and determine the magnified area of the screen magnifier, through the screen magnifier
  • the screen content of the position area corresponding to the position to be enlarged is enlarged by a magnification factor, wherein the position area corresponding to the position to be enlarged is the enlarged area of the screen magnifier.
  • the shape of the screen magnifier can be but is not limited to square, rectangle and circle, which can be set according to user needs, which is not limited in this embodiment.
  • the shape of the screen magnifier in this embodiment is a circle. shape.
  • step S30 includes:
  • Step i determine the pixel data of the area image and the size data of the touch screen, and determine the corresponding position mapping multiple according to the pixel data and the size data;
  • Step j determining the position to be enlarged in the touch screen according to the position coordinates and the position mapping multiple.
  • the central processing unit determines the pixel size of the area image, and determines the size of the touch screen, and divides the size of the touch screen by the pixel size of the area image to obtain the corresponding calculation quotient respectively, and the calculation quotient is The corresponding position mapping multiple, and then multiply the position coordinates corresponding to the user's finger by the position mapping multiple to obtain the position coordinates after the product respectively, and determine the position coordinates after the product as the position to be enlarged on the touch screen.
  • the pixel size of the area image is 1000*800
  • the size of the touch screen is 600*200
  • the position coordinates corresponding to the user's finger are (x, y)
  • the to-be-enlarged position of the position to be enlarged in the touch screen is calculated to be (0.6x, 0.25y).
  • Step k determine the size of the proportion of the finger image and the area image, and determine the size of the distance corresponding to the user's finger and the touch screen based on the size of the proportion;
  • Step 1 Determine the corresponding magnification according to the distance, and amplify the screen content of the position area corresponding to the position to be magnified based on the magnification function and the magnification.
  • the central processing unit determines the coverage area of the finger image captured by the camera device relative to the area image, determines the proportion of the finger image in the area image according to the coverage area, and calculates the distance corresponding to the user's finger and the touch screen according to the proportion. size, and then determine the magnification of the screen magnifier corresponding to the distance size through the distance magnification list, where the distance magnification list is a mapping table established by the distance size and its corresponding magnification factor, and the screen magnifier uses the magnification factor to magnify the position corresponding to the magnification.
  • the screen content of the location area is a mapping table established by the distance size and its corresponding magnification factor
  • the distance between the user's finger and the touch screen is inversely proportional to the magnification, that is, the smaller the distance between the user's finger and the touch screen, the larger the corresponding magnification, and the greater the distance between the user's finger and the touch screen.
  • the corresponding magnification is smaller.
  • the amplifier function is activated, and the camera device is activated to collect the regional image of the preset area, and to detect whether there is a finger image corresponding to the user's finger in the regional image; If there is a finger image in the image, the position coordinates of the user's finger in the area image are determined based on the finger image; the size data of the touch screen is determined, the corresponding position to be enlarged is determined based on the size data and position coordinates, and the corresponding position to be enlarged is enlarged based on the amplifier function.
  • the screen content of the location area is activated, and the camera device is activated to collect the regional image of the preset area, and to detect whether there is a finger image corresponding to the user's finger in the regional image; If there is a finger image in the image, the position coordinates of the user's finger in the area image are determined based on the finger image; the size data of the touch screen is determined, the corresponding position to be enlarged is determined based on the size data and position coordinates, and the
  • the screen content in this embodiment, it detects whether there is a finger image in the area image of the preset area. Determine the corresponding position to be magnified on the touch screen, and then zoom in on the screen content of the position area corresponding to the position to be magnified.
  • the user can move the corresponding position to be magnified on the touch screen by moving the user's finger. Touch the screen to enlarge the screen content of the position area corresponding to the position to be enlarged, so as to prevent the user's finger from covering the screen content on the touch screen.
  • the corresponding position to be enlarged is determined according to the size data of the touch screen. The location area corresponding to the location is partially enlarged to optimize the magnification effect of electronic devices with small screens, thereby solving the problem of poor screen content magnification in electronic devices with small screens, and improving the user experience.
  • Step m Determine each offset position corresponding to the finger image, and determine the first movement distance of the user's finger based on each of the offset positions;
  • Step n determining a corresponding moving multiple based on the size data of the touch screen, and determining a second moving distance corresponding to the position to be enlarged based on the first moving distance and the moving multiple;
  • Step o determining the first target position after adjusting the second moving distance for the position to be enlarged, and amplifying the screen content of the position area corresponding to the first target position based on the amplifier function.
  • the camera device captures the finger image corresponding to the user's finger in real time
  • the central processor analyzes the offset position of each finger image, and analyzes the positional relationship and proportion of each finger image and the regional image, Determine the position coordinates corresponding to the user's finger, determine the moving direction and the first moving distance of the user's finger according to the coordinate change of each position coordinate
  • the central processor obtains the device parameters in the electronic device, and analyzes the device parameters to determine the type of electronic device and electronic device.
  • the device corresponds to the size of the touch screen, and the movement multiple of the electronic device corresponding to the touch screen is determined according to the size enlargement list, wherein the size enlargement list is a mapping table established by the size and the corresponding movement multiple, and then the central processing unit will first move the Divide the distance by the moving multiple to obtain the calculated quotient value, which is the second moving distance corresponding to the position to be enlarged, and move the position to be enlarged on the touch screen by the second moving distance according to the moving direction of the user's finger, wherein the user The moving direction of the finger is consistent with the moving direction of the position to be enlarged, and then the central processing unit determines the first target position after the position to be enlarged is moved by the second moving distance, and the screen magnifier enlarges the position area corresponding to the first target position according to the corresponding magnification factor. screen content.
  • the size enlargement list is a mapping table established by the size and the corresponding movement multiple
  • the central processing unit detects that the position of the user's finger in the current finger image and the previous several frames of the finger image changes within a certain range, the central processing unit sets the position to be enlarged as the current position to solve the problem. Vibration problem.
  • the size enlargement list is that the movement multiplier corresponding to the size of the touch screen of the wrist watch can be 1.5, and the movement multiplier corresponding to the size of the touch screen of the mobile phone and the tablet can be 1.
  • the coordinate change of the user's finger determines that the user's finger moves to the left by 1.5cm (centimeter).
  • the central processing unit determines that the electronic device is a wrist watch by analyzing the device parameters in the electronic device, and then determines that the movement multiple is 1.5, and the position to be enlarged is on the touch screen. Move 1cm to the left.
  • the first movement distance of the user's finger is determined based on each offset position; the corresponding movement multiple is determined based on the size data of the touch screen, and the first movement distance and the movement multiple are determined based on The second moving distance corresponding to the position to be enlarged; determining the first target position after adjusting the second moving distance for the position to be enlarged, and amplifying the screen content of the location area corresponding to the first target position based on the magnifying function.
  • the position to be enlarged is controlled to move by the moving distance and moving direction of the user's finger, and it is unnecessary to touch the touch screen of the electronic device, thereby avoiding the need for the user to move.
  • the finger blocks the screen content on the touch screen, which improves the user experience.
  • the difference between the third embodiment of the method for enlarging screen content and the first embodiment or/and the second embodiment of the method for enlarging screen content is that the method for enlarging screen content further includes:
  • Step p detecting whether the second target position corresponding to the user's finger after moving the first moving distance is within a preset area
  • Step q if it is detected that the second target position is outside the preset area, detect whether the user's finger exists within the preset area within the first preset time period;
  • Step r if it is detected that the user's finger does not exist within the preset area within the first preset time period, turn off the amplifier function.
  • the central processing unit collects the area image in the preset area through the camera device, and detects whether there is a finger image in the area image, that is, detects the first moving distance corresponding to the user's finger after moving the first moving distance. Whether the second target position is within the preset area, if the central processing unit detects that the second target position is within the preset area, the central processing unit determines the corresponding position to be magnified according to the second target position, and according to the corresponding magnification factor Enlarge the screen content of the location area corresponding to the location to be enlarged.
  • the central processing unit If the central processing unit detects that the second target position is outside the preset area, the central processing unit will issue a corresponding prompt message to prompt the user to adjust the user's finger within the preset area, and detect whether the user will The user's finger is adjusted to be within the preset area. If the CPU detects that the user does not adjust the user's finger to the preset area within the first preset time period, the CPU will turn off the magnifier function and the camera device in the touch screen. .
  • the central processing unit determines the current position corresponding to the user's finger, and determines the corresponding position to be enlarged according to the current position, and according to the corresponding The magnification factor magnifies the screen content of the position area corresponding to the position to be magnified.
  • This embodiment detects whether the second target position corresponding to the user's finger is within the preset area after moving the first moving distance; if it is detected that the second target position is outside the preset area, it is detected within the first preset time period. Whether the user's finger exists within the preset area; if it is detected that the user's finger does not exist within the preset area within the first preset time period, the amplifier function is turned off. It can be seen from this that in the process of determining whether the moved user's finger is in the preset area in this embodiment, it detects whether the user's finger is in the preset area after moving.
  • the user is prompted to move the user's finger Adjust to the preset area, and if it is within the preset area, the screen content of the position area corresponding to the position to be enlarged on the touch screen is enlarged, thereby improving the user experience effect.
  • Fig. 4 is a flow chart of the implementation of the method for enlarging the screen content of the present application.
  • Obtain the touch state of the current touch module If the CPU obtains that the touch state of the current touch module has been triggered, that is, it detects that the start command of the amplifier function is triggered, and the CPU delays the preset time to turn on the camera device, and through the camera The device shoots an area image of the preset area, and detects whether there is a finger image corresponding to the user's finger in the area image. If the central processor detects that there is a finger image corresponding to the user's finger in the area image, the central processor will enlarge the screen corresponding to the function.
  • the magnifier is displayed in the central area of the touch screen. If the central processing unit detects that there is no finger image corresponding to the user's finger in the area image, the central processing unit will issue a corresponding prompt message to prompt the user to adjust the user's finger to the preset area, and then the central processing unit will send out a corresponding prompt message.
  • the processor obtains the position of the user's finger in real time, determines the moving direction and moving distance of the user's finger according to the position change of the user's finger, and adjusts the moving direction and moving distance of the position to be enlarged according to the moving direction and moving distance of the user's finger.
  • the CPU detects that the user's finger is still in the preset area after moving the moving distance, the CPU will use the screen magnifier to enlarge the touch screen corresponding to the position to be enlarged If the central processing unit detects that the user's finger is not in the preset area after moving the moving distance, the central processing unit will detect whether the user's finger is adjusted to the preset area within the specified time. If the central processing unit It is detected that the user's finger is not adjusted to the preset area within a specified time, and the central processing unit turns off the camera device and the amplifier function.
  • the present application also provides a device for enlarging screen content.
  • the device for enlarging screen content includes:
  • the start-up module 10 is used to start the amplifier function after detecting the start-up instruction of the amplifier function, and start the camera device to collect the regional image of the preset area;
  • a detection module 20 configured to detect whether there is a finger image corresponding to the user's finger in the area image
  • a determining module 30 configured to determine the position coordinates of the user's finger in the area image based on the finger image if it is detected that the finger image exists in the area image;
  • the determining module 30 is further configured to determine the size data of the touch screen, and determine the corresponding position to be enlarged based on the size data and the position coordinates;
  • the magnifying module 40 is configured to magnify the screen content of the position area corresponding to the position to be magnified based on the magnifying function.
  • the determining module 30 is further configured to determine the pixel data of the area image and the size data of the touch screen, and determine the corresponding position mapping multiple according to the pixel data and the size data; according to the position coordinates and the position mapping multiple to determine the position to be enlarged in the touch screen.
  • the determining module 30 is further configured to determine the proportion of the finger image and the area image, and determine the distance corresponding to the user's finger and the touch screen based on the proportion; determine the corresponding distance according to the distance.
  • a magnification based on the magnification function and using the magnification to magnify the screen content of the position area corresponding to the to-be-magnified position.
  • the detection module 20 is further configured to detect whether the finger image is within a preset edge position of the area image if it is detected that the finger image exists in the area image;
  • the detection module 20 is further configured to detect whether the image ratio of the finger image in the regional image is less than or equal to the preset ratio if it is detected that the finger image is within the preset edge position of the regional image. ;
  • the determining module 30 is further configured to determine the position of the user's finger in the region image based on the finger image if it is detected that the image ratio of the finger image in the region image is less than or equal to a preset ratio. coordinate;
  • the determining module 30 is further configured to determine the positional relationship between the finger image and the regional image, and determine the proportioning relationship between the finger image and the regional image; determine based on the positional relationship and the proportioning relationship. the position coordinates of the user's finger in the area image;
  • the determining module 30 is further configured to determine each offset position corresponding to the finger image, and determine the first movement distance of the user's finger based on each of the offset positions;
  • the determining module 30 is further configured to determine the corresponding moving multiple based on the size data of the touch screen, and determine the second moving distance corresponding to the position to be enlarged based on the first moving distance and the moving multiple; the first target position after the position to be enlarged is adjusted by the second moving distance;
  • the amplifying module 40 is further configured to amplify the screen content of the location area corresponding to the first target location based on the magnifying function;
  • the detection module 20 is further configured to detect whether the second target position corresponding to the user's finger after moving the first moving distance is within a preset area;
  • the detection module 20 is further configured to detect whether the user's finger exists within the preset area within a first preset time period if it is detected that the second target position is outside the preset area.
  • the device for enlarging the screen content also includes:
  • a closing module configured to disable the amplifier function if it is detected that the user's finger does not exist within the preset area within the first preset time period.
  • the device for enlarging the screen content also includes:
  • the sending module is configured to send a prompt message that the user's finger is not detected if it is detected that the finger image does not exist in the area image.
  • the detection module 20 is further configured to detect whether the user's finger exists in the preset area within a second preset time period
  • the closing module is further configured to close the amplifier function if it is detected that the user's finger does not exist in the preset area within the second preset time period.
  • FIG. 6 is a schematic structural diagram of a hardware operating environment involved in the solution of the embodiment of the present application.
  • FIG. 6 can be a schematic structural diagram of a hardware operating environment of an electronic device.
  • the electronic device may include: a processor 1001, such as a CPU (Central Processing Unit, central processing unit), a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002.
  • the communication bus 1002 is used to implement the connection communication between these components.
  • the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (board), and the user interface 1003 may optionally include a standard wired interface (such as a USB (Universal Serial Bus, Universal Serial Bus) interface), a wireless interface (eg Bluetooth interface).
  • the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI ((Wireless-Fidelity)) interface).
  • the memory 1005 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
  • the electronic device may further include an RF (Radio Frequency, radio frequency) circuit, a sensor, a WiFi module, and the like.
  • RF Radio Frequency, radio frequency
  • the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and may include more or less components than the one shown, or combine some components, or arrange different components.
  • the memory 1005 which is a computer storage medium, may include an operating device, a network communication module, a user interface module, and an enlarging program for screen content.
  • the operating device is a program that manages and controls the hardware and software resources of the electronic device, supports the enlargement program of the screen content and the operation of other software or programs.
  • the user interface 1003 is mainly used for the touch module to identify the number of clicks by the user;
  • the network interface 1004 is mainly used for the central processing unit to communicate with the touch module and the camera device;
  • the processor 1001 can use It is used to call the enlargement program of the screen content stored in the memory 1005, and complete the steps of the control method of the electronic device as described above.
  • an embodiment of the present application also proposes a computer-readable storage medium, where an enlarging program for screen content is stored on the computer-readable storage medium, and the above-mentioned screen is implemented when the enlarging program for screen content is executed by a processor.
  • the steps of the content enlargement method are described in detail below.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

一种屏幕内容的放大方法、设备及计算机可读存储介质,该方法的步骤包括:侦测到放大器功能的启动指令后,启动放大器功能,以及启动摄像设备采集预设区域的区域图像,并检测区域图像中是否存在用户手指对应的手指图像(S10);若检测到在区域图像中存在手指图像,则基于手指图像确定用户手指在区域图像中的位置坐标(S20);确定触摸屏幕的尺寸数据,基于尺寸数据和位置坐标确定对应的待放大位置,并基于放大器功能放大待放大位置对应的位置区域的屏幕内容(S30)。该方法通过用户手指的移动即可实现对待放大位置对应的的位置区域的屏幕内容进行放大,从而提升了用户使用的体验效果。

Description

屏幕内容的放大方法、设备及计算机可读存储介质
本申请要求于2020年9月18日提交中国专利局、申请号为202010992490.3、发明名称为“屏幕内容的放大方法、设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及腕带显示以及移动终端领域,尤其涉及一种屏幕内容的放大方法、设备及计算机可读存储介质。
背景技术
目前屏幕内容放大方法主要有整体放大方法和触摸位置放大方法,整体放大方法主要适用于移动终端等较大屏幕的电子设备,对于手表和手环而言,由于手表和手环的屏幕较小,整体放大给用户带来较差的体验效果,同时不利于用户操作。触摸位置放大方法主要是通过识别用户手指触摸屏幕的触摸位置,然后将触摸位置对应的屏幕内容进行放大显示,由于用户手指在触摸屏幕时,遮挡了部分屏幕上的显示内容,从而使得用户的体验效果差。由此可知,目前屏幕内容放大方法的体验效果差。
发明内容
本申请的主要目的在于提供一种屏幕内容的放大方法、设备及计算机可读存储介质,旨在解决目前屏幕内容放大方法的体验效果差的技术问题。
为实现上述目的,本申请提供一种屏幕内容的放大方法,所述屏幕内容的放大方法包括以下步骤:
侦测到放大器功能的启动指令后,启动所述放大器功能,以及启动摄像设备采集预设区域的区域图像,并检测所述区域图像中是否存在用户手指对应的手指图像;
若检测到在所述区域图像中存在所述手指图像,则基于所述手指图像确定所述用户手指在所述区域图像中的位置坐标;
确定触摸屏幕的尺寸数据,基于所述尺寸数据和所述位置坐标确定对应的待放大位置,并基于所述放大器功能放大所述待放大位置对应的位置区域的屏幕内容。
可选地,所述确定触摸屏幕的尺寸数据,基于所述尺寸数据和所述位置坐标确定对应的待放大位置的步骤包括:
确定所述区域图像的像素数据和所述触摸屏幕的尺寸数据,根据所述像素数据和所述尺寸数据确定对应的位置映射倍数;
根据所述位置坐标和所述位置映射倍数确定所述触摸屏幕中的待放大位置。
可选地,所述基于所述放大器功能放大所述待放大位置对应的位置区域的屏幕内容的步骤包括:
确定所述手指图像与所述区域图像的占比大小,基于所述占比大小确定用户手指与所述触摸屏幕对应的距离大小;
根据所述距离大小确定对应的放大倍数,基于所述放大器功能并以所述放大倍数放大所述待放大位置对应的位置区域的屏幕内容。
可选地,所述若检测到在所述区域图像中存在所述手指图像,则基于所述手指图像确定所述用户手指在所述区域图像中的位置坐标的步骤包括:
若检测到在所述区域图像中存在所述手指图像,则检测所述手指图像是否处于所述区域图像的预设边缘位置之内;
若检测到所述手指图像处于所述区域图像的预设边缘位置之内,则检测所述手指图像在所述区域图像的图像占比是否小于或者等于预设比例;
若检测到所述手指图像在所述区域图像的图像占比小于或者等于预设比例,则基于所述手指图像确定所述用户手指在所述区域图像中的位置坐标。
可选地,所述基于所述手指图像确定所述用户手指在所述区域图像中的位置坐标的步包括:
确定所述手指图像与所述区域图像的位置关系,并确定所述手指图像与所述区域图像的占比关系;
基于所述位置关系和所述占比关系确定所述用户手指在所述区域图像中的位置坐标。
可选地,所述基于所述尺寸数据和所述位置坐标确定对应的待放大位置,并基于所述放大器功能放大所述待放大位置对应的位置区域的屏幕内容的步骤之后,还包括:
确定所述手指图像对应的各个偏移位置,基于各个所述偏移位置确定用户手指的第一移动距离;
基于所述触摸屏幕的尺寸数据确定对应的移动倍数,并基于所述第一移动距离和所述移动倍数确定所述待放大位置对应的第二移动距离;
确定所述待放大位置调整所述第二移动距离后的第一目标位置,并基于所述放大器功能放大所述第一目标位置对应的位置区域的屏幕内容。
可选地,所述确定所述手指图像对应的各个偏移位置,基于各个所述偏移位置确定用户手指的第一移动距离的步骤之后,还包括:
检测所述用户手指在移动所述第一移动距离后对应的第二目标位置是否处于预设区域之内;
若检测到所述第二目标位置处于所述预设区域之外,则检测第一预设时长内在所述预设区域之内是否存在所述用户手指;
若检测到所述第一预设时长内在所述预设区域之内不存在所述用户手指,则关闭所述放大器功能。
可选地,所述检测所述区域图像中是否存在用户手指对应的手指图像的步骤之后,还包括:
若检测到在所述区域图像中不存在所述手指图像,则发出未检测到用户手指的提示信息;
检测第二预设时长内在所述预设区域是否存在所述用户手指;
若检测到所述第二预设时长内在所述预设区域不存在所述用户手指,则关闭所述放大器功能。
此外,为实现上述目的,本申请还提供一种电子设备,所述电子设备包括存储器、处理器和存储在所述存储器上并在所述处理器上运行的屏幕内容的放大程序,所述屏幕内容的放大程序被所述处理器执行时实现如上所述的屏幕内容的放大方法的步骤。
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有屏幕内容的放大程序,所述屏幕内容的放大程序被处理器执行时实现如上所述的屏幕内容的放大方法的步骤。
本申请实现通过侦测到放大器功能的启动指令后,启动放大器功能,以及启动摄像设备采集预设区域的区域图像,并检测区域图像中是否存在用户手指对应的手指图像;若检测到在区域图像中存在手指图像,则基于手指图像确定用户手指在区域图像中的位置坐标;确定触摸屏幕的尺寸数据,基于尺寸数据和位置坐标确定对应的待放大位置,并基于放大器功能放大待放大位置对应的位置区域的屏幕内容。由此可知,本申请在对屏幕内容放大的过程中,通过检测预设区域的区域图像中是否存在手指图像,若检测到存在手指图像,则根据触摸屏幕的尺寸数据和用户手指的位置坐标确定触摸屏幕中对应的待放大位置,然后放大待放大位置对应的位置区域的屏幕内容,在本申请中用户通过移动用户手指即可移动触摸屏幕中对应的待放大位置,对待放大位置对应的位置区域的屏幕内容进行放大,不需要用户手指去触摸屏幕,从而避免了用户手指遮挡触摸屏幕上的屏幕内容,再者,本申请根据触摸屏幕的尺寸数据确定对应的待放大位置,对待放大位置对应的位置区域进行局部放大,优化屏幕小的电子设备的放大效果,从而解决小屏幕电子设备屏幕内容放大效果差的问题,提升了用户的使用体验效果。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一部分附图,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1是本申请屏幕内容的放大方法第一实施例的流程示意图;
图2是本申请电子设备的***框图;
图3是本申请屏幕内容的放大方法的使用示意图;
图4是本申请屏幕内容的放大方法的运行实现流程图;
图5是本申请屏幕内容的放大装置的结构示意图;
图6是本申请实施例方案涉及的硬件运行环境的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请提供一种屏幕内容的放大方法,参照图1,图1为本申请屏幕内容的放大方法第一实施例的流程示意图,图2是本申请电子设备的***框图,图3是本申请屏幕内容的放大方法的使用示意图。
本申请实施例提供了屏幕内容的放大方法的实施例,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些数据下,可以以不同于此处的顺序完成所示出或描述的步骤。
屏幕内容的放大方法包括:
步骤S10,侦测到放大器功能的启动指令后,启动所述放大器功能,以及启动摄像设备采集预设区域的区域图像,并检测所述区域图像中是否存在用户手指对应的手指图像。
电子设备由但不限制于CPU模块(Central Processing Unit,中央处理器)、摄像设备模块(摄像设备)和Touch模块(触摸)组成。中央处理器用于与摄像设备连接通信,以及与触摸模块连接通信,摄像设备用于拍摄预设区域的区域图像,触摸模块用于开启触摸屏幕的放大器功能。
电子设备在完成上电初始化后,其中,电子设备包括但不限制于手表和手环等可穿戴设备,以及手机和***等移动终端,若电子设备中的触摸模块识别到用户连续预设次数点击电子设备的触摸屏幕的指定区域,触摸模块则向中央处理器传输对应的提示信息,提示电子设备的放大器功能的启动指令已经被触发,同时,触摸模块开启触摸屏幕的放大器功能,但是不在触摸屏幕中显示放大器功能对应的屏幕放大器,其中,屏幕放大器是放大器功能对应的虚拟的屏幕放大镜。中央处理器侦测到放大器功能的启动指令后,开启电子设备中的摄像设备,摄像设备采集预设区域的区域图像,中央处理器检测在摄像设备采集的区域图像中是否存在用户手指对应的手指图像,若中 央处理器检测到在区域图像中存在用户手指对应的手指图像,中央处理器则确定用户需要放大触摸屏幕中对应的屏幕内容,通过放大器功能对屏幕内容进行放大。若中央处理器检测到在区域图像中不存在用户手指对应的手指图像,中央处理器则确定用户误触触摸屏幕,关闭放大器功能和摄像设备。
其中,预设次数、指定区域和预设区域根据用户需求自行设定,本实施例不作限制,需要说明的是,在默认情况下,本实施例中的预设次数为3次,预设区域和指定区域为摄像设备的正上方区域。
需要说明的是,触摸模块识别到用户连续三次点击触摸屏幕后,会立即发送提示信息至中央处理器,中央处理器则会立即启动摄像设备对预设区域进行拍摄,由于用户还没来得及将用户手指放到预设区域,中央处理器若立即检测摄像设备采集的区域图像中是否存在手指图像,则会造成误判,为了不影响用户体验,在本实施例中,摄像设备设置延迟第一预设时长对预设区域进行拍摄,中央处理器并在第二预设时长内检测在区域图像中是否存在用户手指对应的手指图像,若中央处理器在第二预设时长内检测到在区域图像中不存在手指图像,中央处理器则确定用户误触触摸屏幕,关闭放大器功能和摄像设备。
其中,第一预设时长和第二预设时长根据用户需求自行设定,本实施例不作限制,需要说明的是,在默认情况下,本实施例中的第一预设时长为2s(秒),第二预设时长为3s。
步骤S20,若检测到在所述区域图像中存在所述手指图像,则基于所述手指图像确定所述用户手指在所述区域图像中的位置坐标。
若中央处理器检测到在摄像设备采集的区域图像中存在用户手指对应的手指图像,中央处理器则根据手指图像在区域图像中的位置和大小,确定用户手指在区域图像中的位置坐标,然后根据用户手指对应的位置坐标确定用户需要放大触摸屏幕中对应的位置区域的屏幕内容,并在触摸屏幕对应的区域位置中显示放大器功能对应的屏幕放大器,再通过该屏幕放大器放大触摸屏幕中需要放大位置区域的屏幕内容。
进一步地,所述步骤S20包括:
步骤a,若检测到在所述区域图像中存在所述手指图像,则检测所述手指图像是否处于所述区域图像的预设边缘位置之内;
步骤b,若检测到所述手指图像处于所述区域图像的预设边缘位置之内,则检测所述手指图像在所述区域图像的图像占比是否小于或者等于预设比例;
步骤c,若检测到所述手指图像在所述区域图像的图像占比小于或者等于预设比例,则基于所述手指图像确定所述用户手指在所述区域图像中的位置坐标。
具体地,若中央处理器检测到区域图像中存在用户手指对应的手指图像,中央处理器则检测手指图像是否处于区域图像的预设边缘位置之内,若中央处理器检测到手指图像处于区域图像的预设边缘位置之内,中央处理器确定用户手指所处的区域范围正确,则检测手指图像在区域图像的图像占比是否小于或者等于预设比例,若中央处理器检测到手指图像在区域图像的图像占比大于预设比例,中央处理器确定用户手指与触摸屏幕距离过近,则发出对应的提示信息提示用户调整用户手指与触摸屏幕的距离。若中央处理器检测到手指图像在区域图像的图像占比小于或者等于预设比例,中央处理器确定用户手指与触摸屏幕距离正确,则根据手指图像确定用户手指在区域图像中的位置坐标,并在触摸屏幕中的预设位置显示放大器功能对应的屏幕放大器。若中央处理器检测到手指图像处于区域图像的预设边缘位置之外,中央处理器确定用户手指所处的区域范围为无效区域,则发出对应的提示信息提示用户调整用户手指至正确区域范围。
其中,预设边缘位置、预设比例和预设位置是根据实际情况设定的,本实施例不作限制。
需要说明的是,中央处理器只有检测到在区域图像中存在用户手指对应的手指图像时,才会在触摸屏幕中显示放大器功能对应的屏幕放大器,在未检测到在区域图像中存在用户手指对应的手指图像时,放大器功能虽然处于启动状态,但是并没有在触摸屏幕中显示放大器功能对应的屏幕放大器。
进一步地,屏幕内容的放大方法还包括:
步骤d,若检测到在所述区域图像中不存在所述手指图像,则发出未检测到用户手指的提示信息;
步骤e,检测第二预设时长内在所述预设区域是否存在所述用户手指;
步骤f,若检测到所述第二预设时长内在所述预设区域不存在所述用户手 指,则关闭放大器功能的启动指令。
具体地,若中央处理器检测到区域图像中不存在用户手指对应的手指图像,中央处理器则发出对应的提示信息提示用户将用户手指调整至预设区域,并检测第二预设时长内在预设区域是否存在用户手指,若中央处理器检测到第二预设时长内在预设区域不存在用户手指,中央处理器则关闭放大器功能和摄像设备。若中央处理器检测到第二预设时长内在预设区域存在用户手指,中央处理器则确定用户手指已经处于预设区域,并在触摸屏幕中对应的位置显示放大器功能对应的屏幕放大器。
进一步地,所述步骤c包括:
步骤g,确定所述手指图像与所述区域图像的位置关系,并确定所述手指图像与所述区域图像的占比关系;
步骤h,基于所述位置关系和所述占比关系确定所述用户手指在所述区域图像中的位置坐标。
具体地,中央处理器确定手指图像在区域图像中的覆盖区域,通过覆盖区域确定手指图像在区域图像的方位,其中,方位包括但不限制于东南、东北、西南和西北,然后确定手指图像在区域图像中该方位的占比大小,将该占比大小的长度和宽度转化为该方位对应的横坐标和纵坐标,根据该横坐标和该纵坐标确定用户手指在区域图像中的位置坐标。
步骤S30,确定触摸屏幕的尺寸数据,基于所述尺寸数据和所述位置坐标确定对应的待放大位置,并基于所述放大器功能放大所述待放大位置对应的位置区域的屏幕内容。
中央处理器获取电子设备中的设备数据,通过分析设备数据,得到电子设备对应触摸屏幕的尺寸数据,根据尺寸数据确定对应的位置映射倍数和放大倍数,其中,位置映射倍数就是位置投射放缩大小,然后根据位置映射倍数和用户手指对应的位置坐标确定触摸屏幕中对应的待放大位置,接着将放大器功能对应的屏幕放大器在该待放大位置显示,并确定该屏幕放大器的放大面积,通过屏幕放大器并以放大倍数放大待放大位置对应的位置区域的屏幕内容,其中,待放大位置对应的位置区域即为屏幕放大器的放大面积。
需要说明的是,屏幕放大器的形状可为但不限制于正方形、长方形和圆形,根据用户需求自行设定,本实施例不作限制,在默认情况下,本实施例 中屏幕放大器的形状为圆形。
进一步地,所述步骤S30包括:
步骤i,确定所述区域图像的像素数据和所述触摸屏幕的尺寸数据,根据所述像素数据和所述尺寸数据确定对应的位置映射倍数;
步骤j,根据所述位置坐标和所述位置映射倍数确定所述触摸屏幕中的待放大位置。
具体地,中央处理器确定区域图像的像素大小,以及确定触摸屏幕的尺寸大小,将触摸屏幕的尺寸大小对应除以区域图像的像素大小,分别得到对应的计算商值,该计算商值即为对应的位置映射倍数,然后将用户手指对应的位置坐标分别乘以该位置映射倍数,分别得到乘积后的位置坐标,将乘积后的位置坐标确定为触摸屏幕中的待放大位置。
在本实施例中,比如,区域图像的像素大小为1000*800,触摸屏幕的尺寸大小为600*200,用户手指对应的位置坐标为(x,y),中央处理器计算得到位置映射倍数为600/1000=0.6和200/800=0.25,计算得到待放大位置在触摸屏幕中的待放大位置为(0.6x,0.25y)。
步骤k,确定所述手指图像与所述区域图像的占比大小,基于所述占比大小确定用户手指与所述触摸屏幕对应的距离大小;
步骤l,根据所述距离大小确定对应的放大倍数,基于所述放大器功能并以所述放大倍数放大所述待放大位置对应的位置区域的屏幕内容。
具体地,中央处理器确定摄像设备拍摄的手指图像相对区域图像的覆盖面积,根据覆盖面积确定手指图像在区域图像中的占比大小,通过该占比大小计算出用户手指与触摸屏幕对应的距离大小,然后通过距离放大列表确定该距离大小对应的屏幕放大器的放大倍数,其中,距离放大列表是将距离大小及其对应的放大倍数建立的映射表,屏幕放大器通过该放大倍数放大待放大位置对应的位置区域的屏幕内容。
其中,用户手指距离与触摸屏幕对应的距离大小与放大倍数成反比,即用户手指距离与触摸屏幕对应的距离越小,对应的放大倍数越大,用户手指距离与触摸屏幕对应的距离越大,对应的放大倍数越小。
在本实施例中,比如,放大器功能对应的屏幕放大器为圆形,半径r为1cm(厘米),区域图像的像素大小为1000*800,触摸屏幕的尺寸大小为600*200, 用户手指对应的位置坐标为(x,y),中央处理器计算得到位置映射倍数为600/1000=0.6和200/800=0.25,计算得到待放大位置在触摸屏幕中的待放大位置为(0.6x,0.25y),计算得到屏幕放大器的放大面积为S=πr2=π(cm2),然后屏幕放大器放大以待放大位置(0.6x,0.25y)为圆心,放大位置区域为π(cm2)的屏幕内容。
本实施例实现通过侦测到放大器功能的启动指令后,启动放大器功能,以及启动摄像设备采集预设区域的区域图像,并检测区域图像中是否存在用户手指对应的手指图像;若检测到在区域图像中存在手指图像,则基于手指图像确定用户手指在区域图像中的位置坐标;确定触摸屏幕的尺寸数据,基于尺寸数据和位置坐标确定对应的待放大位置,并基于放大器功能放大待放大位置对应的位置区域的屏幕内容。由此可知,本实施例在对屏幕内容放大的过程中,通过检测预设区域的区域图像中是否存在手指图像,若检测到存在手指图像,则根据触摸屏幕的尺寸数据和用户手指的位置坐标确定触摸屏幕中对应的待放大位置,然后放大待放大位置对应的位置区域的屏幕内容,在本实施例中用户通过移动用户手指即可移动触摸屏幕中对应的待放大位置,不需要用户手指去触摸屏幕,对待放大位置对应的位置区域的屏幕内容进行放大,从而避免了用户手指遮挡触摸屏幕上的屏幕内容,再者,本实施例根据触摸屏幕的尺寸数据确定对应的待放大位置,对待放大位置对应的位置区域进行局部放大,优化屏幕小的电子设备的放大效果,从而解决小屏幕电子设备屏幕内容放大效果差的问题,提升了用户的使用体验效果。
进一步地,提出本申请屏幕内容的放大方法第二实施例。
所述屏幕内容的放大方法第二实施例与所述屏幕内容的放大方法第一施例的区别在于,所述屏幕内容的放大方法还包括:
步骤m,确定所述手指图像对应的各个偏移位置,基于各个所述偏移位置确定用户手指的第一移动距离;
步骤n,基于所述触摸屏幕的尺寸数据确定对应的移动倍数,并基于所述第一移动距离和所述移动倍数确定所述待放大位置对应的第二移动距离;
步骤o,确定所述待放大位置调整所述第二移动距离后的第一目标位置,并基于所述放大器功能放大所述第一目标位置对应的位置区域的屏幕内容。
具体地,用户移动用户手指时,摄像设备实时捕捉用户手指对应的手指图像,中央处理器分析每个手指图像的偏移位置,以及分析每个手指图像与区域图像的位置关系和占比大小,确定用户手指对应的位置坐标,根据各个位置坐标的坐标变化确定用户手指的移动方向和第一移动距离,中央处理器获取电子设备中的设备参数,通过分析设备参数,确定电子设备的类型以及电子设备对应触摸屏幕的尺寸大小,根据尺寸放大列表确定该电子设备对应触摸屏幕的移动倍数,其中,尺寸放大列表是将尺寸大小和对应的移动倍数建立的映射表,然后中央处理器将第一移动距离除以移动倍数,得到计算商值,该计算商值即为待放大位置对应的第二移动距离,并根据用户手指的移动方向将待放大位置在触摸屏幕中移动第二移动距离,其中,用户手指移动方向与待放大位置移动方向是一致的,然后中央处理器确定待放大位置移动第二移动距离后的第一目标位置,屏幕放大器根据对应的放大倍数放大第一目标位置对应的位置区域的屏幕内容。
需要说明的是,待放大位置的移动过程中,用户手指位在某一区域位置内并且保持不移动时,由于用户手指会有轻微晃动,导致摄像设备拍摄到的用户手指位置有轻微变化,为了不影响用户体验,本实施例中,若中央处理器检测到当前手指图像与前几帧手指图像中用户手指位置变化在一定范围内,中央处理器则设定待放大位置为当前位置,以解决消抖问题。
在本实施例中,比如,尺寸放大列表为腕带手表的触摸屏幕的尺寸大小对应的移动倍数可为1.5,手机和平板的触摸屏幕的尺寸大小对应的移动倍数可为1,中央处理器通过用户手指的坐标变化确定用户手指向左移动1.5cm(厘米),中央处理器通过分析电子设备中的设备参数确定电子设备为腕带手表,则确定移动倍数为1.5,待放大位置在触摸屏幕上向左移动1cm。
本实施例通过确定手指图像对应的各个偏移位置,基于各个偏移位置确定用户手指的第一移动距离;基于触摸屏幕的尺寸数据确定对应的移动倍数,并基于第一移动距离和移动倍数确定待放大位置对应的第二移动距离;确定待放大位置调整第二移动距离后的第一目标位置,并基于放大器功能放大第一目标位置对应的位置区域的屏幕内容。由此可知,本实施例在确定待放大位置移动距离的过程中,通过用户手指的移动距离和移动方向控制待放大位置进行移动,而不需要再去接触电子设备的触摸屏幕,从而避免了用户手指 遮挡触摸屏幕上的屏幕内容,提升了用户的使用体验效果。
进一步地,提出本申请屏幕内容的放大方法第三实施例。
所述屏幕内容的放大方法第三实施例与所述屏幕内容的放大方法第一施例或/和第二实施例的区别在于,所述屏幕内容的放大方法还包括:
步骤p,检测所述用户手指在移动所述第一移动距离后对应的第二目标位置是否处于预设区域之内;
步骤q,若检测到所述第二目标位置处于所述预设区域之外,则检测第一预设时长内在所述预设区域之内是否存在所述用户手指;
步骤r,若检测到所述第一预设时长内在所述预设区域之内不存在所述用户手指,则关闭所述放大器功能。
具体地,用户手指在移动第一移动距离后,中央处理器通过摄像设备在预设区域采集区域图像,检测区域图像中是否存在手指图像,即检测用户手指在移动第一移动距离后对应的第二目标位置是否处于预设区域之内,若中央处理器检测到第二目标位置处于预设区域之内,中央处理器则根据第二目标位置确定对应的待放大位置,并根据对应的放大倍数放大该待放大位置对应的位置区域的屏幕内容。若中央处理器检测到第二目标位置处于预设区域之外,中央处理器则发出对应的提示信息提示用户将用户手指调整至预设区域之内,并检测第一预设时长内用户是否将用户手指调整至预设区域之内,若中央处理器检测到第一预设时长内,用户没有将用户手指调整至预设区域之内,中央处理器则关闭触摸屏幕中的放大器功能和摄像设备。若中央处理器检测到第一预设时长内用户将用户手指调整至预设区域之内,中央处理器则确定用户手指对应的当前位置,并根据当前位置确定对应的待放大位置,并根据对应的放大倍数放大该待放大位置对应的位置区域的屏幕内容。
本实施例通过检测用户手指在移动第一移动距离后对应的第二目标位置是否处于预设区域之内;若检测到第二目标位置处于预设区域之外,则检测第一预设时长内在预设区域之内是否存在用户手指;若检测到第一预设时长内在预设区域之内不存在用户手指,则关闭放大器功能。由此可知,本实施例在确定移动后的用户手指是否在预设区域的过程中,通过检测用户手指在移动后是否在预设区域内,若不在预设区域内,则提示用户将用户手指调整 至预设区域,若在预设区域内,则放大触摸屏幕中待放大位置对应的位置区域的屏幕内容,从而提升了用户的使用体验效果。
进一步地,如图4,图4是本申请屏幕内容的放大方法的运行实现流程图,电子设备的***上电完成触摸(Touch)模块及摄像设备(Camera)等模块初始化功能后,中央处理器获取当前触摸模块的触摸状态,若中央处理器获取到当前触摸模块的触摸状态已被触发,即侦测到放大器功能的启动指令被触发,中央处理器则延迟预设时间开启摄像设备,通过摄像设备拍摄预设区域的区域图像,并检测区域图像中是否存在用户手指对应的手指图像,若中央处理器检测到区域图像中存在用户手指对应的手指图像,中央处理器则将放大器功能对应的屏幕放大器显示在触摸屏幕中央区域,若中央处理器检测到区域图像中不存在用户手指对应的手指图像,中央处理器则发出对应的提示信息提示用户将用户手指调整至预设区域之内,然后中央处理器实时获取用户手指的位置,根据用户手指的位置变化确定用户手指的移动方向和移动距离,根据用户手指的移动方向和移动距离调整待放大位置的移动方向和移动距离,中央处理器检测用户手指移动该移动距离之后是否还在预设区域中,若中央处理器检测到用户手指移动该移动距离之后还在预设区域中,中央处理器则通过屏幕放大器放大触摸屏幕中该待放大位置对应的位置区域的屏幕内容,若中央处理器检测到用户手指移动该移动距离之后不在预设区域中,中央处理器则在规定时间内检测用户手指是否调整至该预设区域中,若中央处理器在规定时间内检测用户手指没有调整至该预设区域中,中央处理器则关闭摄像设备和放大器功能。
此外,本申请还提供一种屏幕内容的放大装置,参照图5,所述屏幕内容的放大装置包括:
启动模块10,用于侦测到放大器功能的启动指令后,启动所述放大器功能,以及启动摄像设备采集预设区域的区域图像;
检测模块20,用于检测所述区域图像中是否存在用户手指对应的手指图像;
确定模块30,用于若检测到在所述区域图像中存在所述手指图像,则基于所述手指图像确定所述用户手指在所述区域图像中的位置坐标;
所述确定模块30还用于确定触摸屏幕的尺寸数据,基于所述尺寸数据和所述位置坐标确定对应的待放大位置;
放大模块40,用于基于所述放大器功能放大所述待放大位置对应的位置区域的屏幕内容。
进一步地,所述确定模块30还用于确定所述区域图像的像素数据和所述触摸屏幕的尺寸数据,根据所述像素数据和所述尺寸数据确定对应的位置映射倍数;根据所述位置坐标和所述位置映射倍数确定所述触摸屏幕中的待放大位置。
所述确定模块30还用于确定所述手指图像与所述区域图像的占比大小,基于所述占比大小确定用户手指与所述触摸屏幕对应的距离大小;根据所述距离大小确定对应的放大倍数,基于所述放大器功能并以所述放大倍数放大所述待放大位置对应的位置区域的屏幕内容。
进一步地,所述检测模块20还用于若检测到在所述区域图像中存在所述手指图像,则检测所述手指图像是否处于所述区域图像的预设边缘位置之内;
所述检测模块20还用于若检测到所述手指图像处于所述区域图像的预设边缘位置之内,则检测所述手指图像在所述区域图像的图像占比是否小于或者等于预设比例;
所述确定模块30还用于若检测到所述手指图像在所述区域图像的图像占比小于或者等于预设比例,则基于所述手指图像确定所述用户手指在所述区域图像中的位置坐标;
所述确定模块30还用于确定所述手指图像与所述区域图像的位置关系,并确定所述手指图像与所述区域图像的占比关系;基于所述位置关系和所述占比关系确定所述用户手指在所述区域图像中的位置坐标;
所述确定模块30还用于确定所述手指图像对应的各个偏移位置,基于各个所述偏移位置确定用户手指的第一移动距离;
所述确定模块30还用于基于所述触摸屏幕的尺寸数据确定对应的移动倍数,并基于所述第一移动距离和所述移动倍数确定所述待放大位置对应的第二移动距离;确定所述待放大位置调整所述第二移动距离后的第一目标位置;
所述放大模块40还用于基于所述放大器功能放大所述第一目标位置对应的位置区域的屏幕内容;
所述检测模块20还用于检测所述用户手指在移动所述第一移动距离后对应的第二目标位置是否处于预设区域之内;
所述检测模块20还用于若检测到所述第二目标位置处于所述预设区域之外,则检测第一预设时长内在所述预设区域之内是否存在所述用户手指。
进一步地,所述屏幕内容的放大装置还包括:
关闭模块,用于若检测到所述第一预设时长内在所述预设区域之内不存在所述用户手指,则关闭所述放大器功能。
进一步地,所述屏幕内容的放大装置还包括:
发出模块,用于若检测到在所述区域图像中不存在所述手指图像,则发出未检测到用户手指的提示信息。
进一步地,所述检测模块20还用于检测第二预设时长内在所述预设区域是否存在所述用户手指;
所述关闭模块还用于若检测到所述第二预设时长内在所述预设区域不存在所述用户手指,则关闭所述放大器功能。
本申请基于屏幕内容的放大装置具体实施方式与上述基于屏幕内容的放大方法各实施例基本相同,在此不再赘述。
此外,本申请还提供一种电子设备。如图6所示,图6是本申请实施例方案涉及的硬件运行环境的结构示意图。
需要说明的是,图6即可为电子设备的硬件运行环境的结构示意图。
如图6所示,该电子设备可以包括:处理器1001,例如CPU(Central Processing Unit,中央处理器),存储器1005,用户接口1003,网络接口1004,通信总线1002。通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(board),用户接口1003可选的还可以包括标准的有线接口(如USB(Universal Serial Bus,通用串行总线)接口)、无线接口(如蓝牙接口)。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI((Wireless-Fidelity))接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。
可选地,电子设备还可以包括RF(Radio Frequency,射频)电路,传感器、WiFi模块等等。
本领域技术人员可以理解,图6中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图6所示,作为一种计算机存储介质的存储器1005中可以包括操作设备、网络通信模块、用户接口模块以及屏幕内容的放大程序。其中,操作设备是管理和控制电子设备硬件和软件资源的程序,支持屏幕内容的放大程序以及其它软件或程序的运行。
在图所示的电子设备中,用户接口1003主要用于触摸模块,识别用户的点击次数;网络接口1004主要用于中央处理器,以与触摸模块和摄像设备进行数据通信;处理器1001可以用于调用存储器1005中存储的屏幕内容的放大程序,并完成如上所述的电子设备的控制方法的步骤。
本申请电子设备具体实施方式与上述屏幕内容的放大方法各实施例基本相同,在此不再赘述。
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有屏幕内容的放大程序,所述屏幕内容的放大程序被处理器执行时实现如上所述的屏幕内容的放大方法的步骤。
本申请计算机可读存储介质具体实施方式与上述屏幕内容的放大方法各实施例基本相同,在此不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的数据下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通 过硬件,但很多数据下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件货物的形式体现出来,该计算机软件货物存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备完成本申请各个实施例所述的方法。

Claims (10)

  1. 一种屏幕内容的放大方法,其特征在于,所述屏幕内容的放大方法包括以下步骤:
    侦测到放大器功能的启动指令后,启动所述放大器功能,以及启动摄像设备采集预设区域的区域图像,并检测所述区域图像中是否存在用户手指对应的手指图像;
    若检测到在所述区域图像中存在所述手指图像,则基于所述手指图像确定所述用户手指在所述区域图像中的位置坐标;
    确定触摸屏幕的尺寸数据,基于所述尺寸数据和所述位置坐标确定对应的待放大位置,并基于所述放大器功能放大所述待放大位置对应的位置区域的屏幕内容。
  2. 如权利要求1所述的屏幕内容的放大方法,其特征在于,所述确定触摸屏幕的尺寸数据,基于所述尺寸数据和所述位置坐标确定对应的待放大位置的步骤包括:
    确定所述区域图像的像素数据和所述触摸屏幕的尺寸数据,根据所述像素数据和所述尺寸数据确定对应的位置映射倍数;
    根据所述位置坐标和所述位置映射倍数确定所述触摸屏幕中的待放大位置。
  3. 如权利要求1所述的屏幕内容的放大方法,其特征在于,所述基于所述放大器功能放大所述待放大位置对应的位置区域的屏幕内容的步骤包括:
    确定所述手指图像与所述区域图像的占比大小,基于所述占比大小确定用户手指与所述触摸屏幕对应的距离大小;
    根据所述距离大小确定对应的放大倍数,基于所述放大器功能并以所述放大倍数放大所述待放大位置对应的位置区域的屏幕内容。
  4. 如权利要求1所述的屏幕内容的放大方法,其特征在于,所述若检测到在所述区域图像中存在所述手指图像,则基于所述手指图像确定所述用户 手指在所述区域图像中的位置坐标的步骤包括:
    若检测到在所述区域图像中存在所述手指图像,则检测所述手指图像是否处于所述区域图像的预设边缘位置之内;
    若检测到所述手指图像处于所述区域图像的预设边缘位置之内,则检测所述手指图像在所述区域图像的图像占比是否小于或者等于预设比例;
    若检测到所述手指图像在所述区域图像的图像占比小于或者等于预设比例,则基于所述手指图像确定所述用户手指在所述区域图像中的位置坐标。
  5. 如权利要求4所述的屏幕内容的放大方法,其特征在于,所述基于所述手指图像确定所述用户手指在所述区域图像中的位置坐标的步包括:
    确定所述手指图像与所述区域图像的位置关系,并确定所述手指图像与所述区域图像的占比关系;
    基于所述位置关系和所述占比关系确定所述用户手指在所述区域图像中的位置坐标。
  6. 如权利要求1所述的屏幕内容的放大方法,其特征在于,所述基于所述尺寸数据和所述位置坐标确定对应的待放大位置,并基于所述放大器功能放大所述待放大位置对应的位置区域的屏幕内容的步骤之后,还包括:
    确定所述手指图像对应的各个偏移位置,基于各个所述偏移位置确定用户手指的第一移动距离;
    基于所述触摸屏幕的尺寸数据确定对应的移动倍数,并基于所述第一移动距离和所述移动倍数确定所述待放大位置对应的第二移动距离;
    确定所述待放大位置调整所述第二移动距离后的第一目标位置,并基于所述放大器功能放大所述第一目标位置对应的位置区域的屏幕内容。
  7. 如权利要求6所述的屏幕内容的放大方法,其特征在于,所述确定所述手指图像对应的各个偏移位置,基于各个所述偏移位置确定用户手指的第一移动距离的步骤之后,还包括:
    检测所述用户手指在移动所述第一移动距离后对应的第二目标位置是否处于预设区域之内;
    若检测到所述第二目标位置处于所述预设区域之外,则检测第一预设时长内在所述预设区域之内是否存在所述用户手指;
    若检测到所述第一预设时长内在所述预设区域之内不存在所述用户手指,则关闭所述放大器功能。
  8. 如权利要求1至7任一项所述的屏幕内容的放大方法,其特征在于,所述检测所述区域图像中是否存在用户手指对应的手指图像的步骤之后,还包括:
    若检测到在所述区域图像中不存在所述手指图像,则发出未检测到用户手指的提示信息;
    检测第二预设时长内在所述预设区域是否存在所述用户手指;
    若检测到所述第二预设时长内在所述预设区域不存在所述用户手指,则关闭所述放大器功能。
  9. 一种电子设备,其特征在于,所述电子设备包括存储器、处理器和存储在所述存储器上并在所述处理器上运行的屏幕内容的放大程序,所述屏幕内容的放大程序被所述处理器执行时实现如权利要求1至8中任一项所述的屏幕内容的放大方法的步骤。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有屏幕内容的放大程序,所述屏幕内容的放大程序被处理器执行时实现如权利要求1至8中任一项所述的屏幕内容的放大方法的步骤。
PCT/CN2020/136321 2020-09-18 2020-12-15 屏幕内容的放大方法、设备及计算机可读存储介质 WO2022057118A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US18/044,985 US20230359338A1 (en) 2020-09-18 2020-12-15 Screen content magnification method and device, and computer readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010992490.3A CN112114732B (zh) 2020-09-18 2020-09-18 屏幕内容的放大方法、设备及计算机可读存储介质
CN202010992490.3 2020-09-18

Publications (1)

Publication Number Publication Date
WO2022057118A1 true WO2022057118A1 (zh) 2022-03-24

Family

ID=73800307

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/136321 WO2022057118A1 (zh) 2020-09-18 2020-12-15 屏幕内容的放大方法、设备及计算机可读存储介质

Country Status (3)

Country Link
US (1) US20230359338A1 (zh)
CN (1) CN112114732B (zh)
WO (1) WO2022057118A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073454A (zh) * 2011-01-13 2011-05-25 宇龙计算机通信科技(深圳)有限公司 一种移动终端及触摸屏的输入控制方法
CN102298504A (zh) * 2011-09-27 2011-12-28 汉王科技股份有限公司 一种放大显示方法和***
CN102402680A (zh) * 2010-09-13 2012-04-04 株式会社理光 人机交互***中手部、指示点定位方法和手势确定方法
CN102890607A (zh) * 2012-03-12 2013-01-23 中兴通讯股份有限公司 终端屏幕显示控制方法及终端
US20160062452A1 (en) * 2014-09-01 2016-03-03 Samsung Electronics Co., Ltd. Method for providing screen magnification and electronic device thereof
CN106896913A (zh) * 2015-12-18 2017-06-27 戴尔菲技术公司 监测输出单元前面的3d空间以控制输出单元的***和方法

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661329B (zh) * 2009-09-22 2015-06-03 北京中星微电子有限公司 智能终端的操作控制方法及装置
US20120278712A1 (en) * 2011-04-27 2012-11-01 Microsoft Corporation Multi-input gestures in hierarchical regions
CN102360264B (zh) * 2011-09-30 2014-05-28 奇智软件(北京)有限公司 便携式移动终端的触摸控制式浏览器
CN103984489A (zh) * 2013-02-07 2014-08-13 宏碁股份有限公司 放大显示画面的方法
CN104331191A (zh) * 2013-07-22 2015-02-04 深圳富泰宏精密工业有限公司 基于图像识别实现触摸的***及方法
CN104656903A (zh) * 2015-03-04 2015-05-27 联想(北京)有限公司 一种显示图像处理方法和电子设备
CN106569635A (zh) * 2016-10-31 2017-04-19 努比亚技术有限公司 一种终端悬浮组合操作装置及其方法
CN108171155A (zh) * 2017-12-26 2018-06-15 上海展扬通信技术有限公司 一种图像缩放方法及终端
CN109407939B (zh) * 2018-10-12 2021-03-30 深圳鑫想科技有限责任公司 一种终端图像放大方法、装置及计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402680A (zh) * 2010-09-13 2012-04-04 株式会社理光 人机交互***中手部、指示点定位方法和手势确定方法
CN102073454A (zh) * 2011-01-13 2011-05-25 宇龙计算机通信科技(深圳)有限公司 一种移动终端及触摸屏的输入控制方法
CN102298504A (zh) * 2011-09-27 2011-12-28 汉王科技股份有限公司 一种放大显示方法和***
CN102890607A (zh) * 2012-03-12 2013-01-23 中兴通讯股份有限公司 终端屏幕显示控制方法及终端
US20160062452A1 (en) * 2014-09-01 2016-03-03 Samsung Electronics Co., Ltd. Method for providing screen magnification and electronic device thereof
CN106896913A (zh) * 2015-12-18 2017-06-27 戴尔菲技术公司 监测输出单元前面的3d空间以控制输出单元的***和方法

Also Published As

Publication number Publication date
CN112114732A (zh) 2020-12-22
US20230359338A1 (en) 2023-11-09
CN112114732B (zh) 2022-03-25

Similar Documents

Publication Publication Date Title
CN110215690B (zh) 游戏场景中的视角切换方法、装置及电子设备
TWI672629B (zh) 表情展示方法、裝置及電腦可讀取儲存媒體
US11054988B2 (en) Graphical user interface display method and electronic device
KR20180015532A (ko) 디스플레이 제어 방법, 저장 매체 및 전자 장치
EP3182716A1 (en) Method and device for video display
US20180232135A1 (en) Method for window displaying on a mobile terminal and mobile terminal
CN107124508B (zh) 悬浮控件的位置调整方法、装置及终端、可读存储介质
US20130241829A1 (en) User interface method of touch screen terminal and apparatus therefor
JP2017510915A (ja) ディスプレイモードを切り換える方法及び装置
WO2018010440A1 (zh) 一种投影画面调整方法、装置和投影终端
WO2015192763A1 (zh) 一种触摸屏控制方法及装置
CN107741814B (zh) 一种显示控制方法及移动终端
CN108920069B (zh) 一种触控操作方法、装置、移动终端和存储介质
US20150077437A1 (en) Method for Implementing Electronic Magnifier and User Equipment
WO2021203815A1 (zh) 页面操作方法、装置、终端及存储介质
CN110968229A (zh) 一种壁纸设置方法及电子设备
CN108469940B (zh) 一种截图方法及终端
CN110941378B (zh) 视频内容显示方法及电子设备
CN104765549A (zh) 一种移动终端显示界面缩放的实现方法和装置
CN106713742B (zh) 一种拍摄方法和移动终端
CN112783406B (zh) 操作执行方法、装置和电子设备
CN108737731B (zh) 一种对焦方法及终端设备
CN111796746B (zh) 音量调节方法、音量调节装置和电子设备
WO2022057118A1 (zh) 屏幕内容的放大方法、设备及计算机可读存储介质
CN115291778B (zh) 显示控制方法、装置、电子设备及可读存储介质

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: 20953973

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: 20953973

Country of ref document: EP

Kind code of ref document: A1