IMAGE DRAWING METHOD

Information

  • Patent Application
  • 20230377222
  • Publication Number
    20230377222
  • Date Filed
    July 31, 2023
    9 months ago
  • Date Published
    November 23, 2023
    5 months ago
Abstract
A remote computer sequentially detects positions of an indicator on a sensor surface at a predetermined sampling rate using an input sensor, and sequentially transmits pieces of report data including the positions to a host computer. A host computer detects a gesture based on a series of the pieces of report data received from the remote computer, generates one or more deformed images by imparting a deformation corresponding to contents and an amount that are indicated by the gesture, to one or more images, transmits the one or more deformed images to the remote computer, and performs cancelation processing that cancels generation of the one or more deformed images when one of the pieces of report data received from the remote computer includes an end report indicating that the indicator has been moved away from the sensor surface.
Description
BACKGROUND
Technical Field

The present disclosure relates to an image drawing method, and particularly to an image drawing method for deforming an image according to a gesture input by a user.


Description of the Related Art

Remote desktop systems that display images on remote computers are becoming popular. Patent Document 1 discloses an example of a remote desktop system. This type of remote desktop system includes a host computer that generates an image for display on a display of a remote computer and the remote computer that displays an image supplied from the host computer.


PRIOR ART DOCUMENT
Patent Document



  • Patent Document 1: Japanese Patent Laid-open No. 2016-189127



BRIEF SUMMARY
Technical Problems

In the meantime, a remote computer has an input sensor for allowing a user to input information with his or her finger or a pen, in some cases. When the remote computer having the input sensor detects that a position in the above-described image has been indicated by a finger or a pen, various types of data including the indicated position are transmitted to the host computer in the form of a report. Based on a series of reports thus received, the host computer detects a gesture (for example, pinch-out gesture, pinch-in gesture, drag gesture, rotation gesture, or the like) and imparts a deformation (for example, enlargement, reduction, movement, rotation, or the like) according to the detected gesture to the above-described image. When the image thus deformed is supplied from the host computer to the remote computer, the deformed image can visually be recognized even in the remote computer.


However, according to the processing described above, since the communication between the remote computer and the host computer is required after the user makes a gesture in the remote computer until the deformation based on the gesture is reflected on the image displayed on the remote computer, a considerable processing delay occurs. Due to the processing delay, the user may wrongly recognize that the gestures are insufficient, although enough gestures have actually been made, and may make extra gestures in some cases. This causes the image to be excessively deformed as if inertia worked, and thus, improvement has been needed.


Therefore, embodiments of the present disclosure provide an image drawing method that can prevent a deformation of an image based on a gesture from becoming excessive due to a processing delay.


Technical Solution

An image processing method according to a first aspect of the present disclosure is an image drawing method performed by a system including a host computer that executes an operating system and generates a plurality of images, and a remote computer that includes an input sensor having a sensor surface and a display and that displays at least some of the images generated by the host computer on the display. The method includes, by the remote computer, sequentially detecting a plurality of positions of an indicator on the sensor surface at a predetermined sampling rate using the input sensor and sequentially transmitting plurality of pieces of report data including the plurality of positions to the host computer, wherein the remote computer transmits one of the pieces of report data each time one of the plurality of positions of the indicator is detected. The method also includes, by the host computer, detecting a gesture based on a series of the pieces of report data received from the remote computer, generating one or more deformed images by imparting a deformation corresponding to contents and an amount that are indicated by the gesture, to one or more of the images or a previously-transmitted deformed image, and transmitting the one or more deformed images to the remote computer. The method also includes, by the host computer performing cancelation processing that cancels the generating of the one or more deformed images when one or more of the pieces of the report data received from the remote computer includes an end report indicating that the indicator has been moved away from the sensor surface.


An image processing method according to a second aspect of the present disclosure is an image drawing method performed by a system including a host computer that executes an operating system and generates plurality of images, and a remote computer that includes an input sensor having a sensor surface and a display and that displays at least some of the images generated by the host computer on the display. The method includes, by the remote computer, sequentially detecting a plurality of positions of an indicator on the sensor surface at a predetermined sampling rate using the input sensor and determining whether a movement of the indicator indicated by the plurality of positions of the indicator corresponds to a fixed gesture, generating report data for the input sensor and transmitting the report data to the host computer in a case where the movement of the indicator is not determined to correspond to the fixed gesture, and generating report data for a device different from the input sensor and transmitting the report data to the host computer in a case where the movement of the indicator is determined to correspond to the fixed gesture.


Advantageous Effects

According to the first aspect of the present disclosure, since the deformation of the image is canceled according to the end report, it is possible to prevent the deformation of the image based on the gesture from becoming excessive due to a processing delay.


According to the second aspect of the present disclosure, since the gesture is replaced with data having a small data size and is then transmitted, it is possible to prevent the deformation of the image based on the gesture from—becoming excessive due to a processing delay.





BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS


FIG. 1 is a diagram for illustrating system configurations of computers 1 and 2 that perform an image processing method according to a first embodiment of the present disclosure.



FIG. 2A is a diagram for illustrating the format of report data R generated by an operating system 30 of the computer 1 for a pen P, and FIG. 2B is a diagram for illustrating the format of report data R generated by a processor 10 for a finger of a user.



FIG. 3 is a schematic block diagram for illustrating functional blocks of an operating system 30 of the computer 2.



FIG. 4 is a diagram for illustrating a processing flow of image deformation processing performed by a drawing application 31.



FIG. 5 is a diagram for illustrating a processing flow of number-of-canceled-images setting processing performed by the drawing application 31 to set the number n of canceled images in a memory 11.



FIG. 6 is a diagram for explaining the relation between a length of time T_delay and the number n of canceled images.



FIG. 7 is a diagram for illustrating a processing flow according to another example of the number-of-canceled-images setting processing performed by the drawing application 31 to set the number n of canceled images in the memory 11.



FIG. 8 is a diagram for illustrating a window image 40 that is an example of a test interface transmitted at S30 of FIG. 7.



FIG. 9 is a schematic block diagram for illustrating functional blocks of the operating system 30 of the computer 2 according to a modified example of the first embodiment of the present disclosure.



FIG. 10 is a diagram for illustrating a processing flow of report data transmission processing performed by the operating system 30 of the computer 1 according to a second embodiment of the present disclosure.



FIGS. 11A and 11B are diagrams each illustrating an example of a correspondence table that associates the types of gestures with commands registered in the drawing application 31.





DETAILED DESCRIPTION

Hereinafter, embodiments of the present disclosure will be described in detail with reference to the attached drawings.



FIG. 1 is a diagram for illustrating system configurations of computers 1 and 2 that perform an image processing method according to a first embodiment of the present disclosure. Each of the computers 1 and 2 is, for example, an information processing device for personal use, such as a personal computer, a tablet terminal, or a smartphone. Although the configurations of the computers 1 and 2 may be the same, the computer 1 is used as a remote computer, and the computer 2 is used as a host computer in the present embodiment. FIG. 1 illustrates only the configurations necessary to function as the remote computer or the host computer.


The computer 1, which is a remote computer, includes a processor 10, a memory 11, a communication device 12, an input device 13, a display 14, and an input sensor 15, while the computer 2, which is a host computer, includes a processor 10, a memory 11, a communication device 12, and a display 14.


The processors 10 are central processing units of the computers 1 and 2, and are configured to read, from the memories 11, programs included in various device drivers and various applications in addition to the illustrated operating systems 30, and to execute the programs. The applications executed by the processor 10 of the computer 2 include a drawing application 31 having a function of generating an image. The image generated by the drawing application 31 includes an image to be deformed by a user. In addition, the operating system 30 includes a desktop window manager 30a that is a program for managing the drawing on the screen. The desktop window manager 30a plays a role of generating a video signal based on the image generated by the drawing application 31 and supplying the image to its own display 14 and the other computer, and also plays a role of supplying a video signal supplied from the other computer to its own display 14.


The memory 11 is a storage device that stores the programs to be executed by the processor 10 and that also stores various types of data to be referred to by the processor 10. More specifically, the memory 11 includes a main storage device such as a DRAM (Dynamic Random Access Memory) and an auxiliary storage device such as a hard disk.


The communication device 12 is a device having a function of communicating with the other computer via the Internet or an ad hoc network. The operating system 30 transmits and receives various types of data to/from the operating system 30 of the other computer via the communication device 12.


The input device 13 is a device for accepting input made by the user on the operating system 30, and includes, for example, a keyboard and a mouse. When the user operates the input device 13, the input device 13 generates data indicating the operation contents and supplies the data to the operating system 30. The operating system 30 accepts the user input based on the data thus supplied.


The display 14 is a device that visually outputs a video signal supplied from the operating system 30 (more specifically, the desktop window manager 30a). When the display 14 outputs the video signal in such a manner, the user can view the image generated by the drawing application 31.


The input sensor 15 is a device having a sensor surface and has a function of repeatedly and sequentially detecting the position of an indicator such as an illustrated pen P or a finger of the user on the sensor surface at a predetermined sampling rate and receiving various types of data from the pen P. The data received from the pen P includes a pen pressure detected by a pressure sensor built into the pen P. Although the specific method for detecting the pen P and the finger by the input sensor 15 is not limited to a particular method, for example, an active capacitive method or an electromagnetic induction method can suitably be used for the detection of the pen P, and a capacitance method can suitably be used for the detection of the finger. In the following, the explanation will be continued on the assumption that the detection of the pen P is performed by the active capacitive method and the detection of the finger is performed by the capacitance method.


The sensor surface of the input sensor 15 also typically serves as the display surface of the display 14. In this case, the user can operate the image displayed on the display 14, by using the indicator, as if the user directly touched and operated the image. However, the sensor surface of the input sensor 15 may be provided separately from the display surface of the display 14 as in the case of, for example, a touchpad of a notebook personal computer or an external digitizer.


Directly below the sensor surface, a plurality of x electrodes and a plurality of y electrodes are arranged. The x electrodes each extend in a y direction and are arranged at equal intervals in an x direction. The y electrodes each extend in the x direction and are arranged at equal intervals in the y direction. By using these electrodes, the input sensor 15 detects the position of the indicator and receives data from the pen P. Hereinafter, processing performed by the input sensor 15 will be described in detail separately for a case where the detection target is the pen P and a case where the detection target is the finger.


First, the case where the detection target is the pen P will be described. The input sensor 15 is configured to periodically transmit a predetermined uplink signal by using either the plurality of x electrodes or the plurality of y electrodes as transmission electrodes. The uplink signal includes a local ID (Identification) that is to be assigned to the undetected pen P.


When the pen P which is yet to be paired with the input sensor 15 receives the uplink signal through the capacitive coupling with the above-described x electrodes or y electrodes, the pen P extracts and acquires the local ID therefrom, and transmits a downlink signal at a timing corresponding to the reception timing of the uplink signal. The downlink signal transmitted by the pen P at this stage consists of only a position signal that is an unmodulated carrier signal. The input sensor 15 receives the position signal at each of the plurality of x electrodes and y electrodes in the input sensor 15, detects the position of the pen P based on the reception intensity at each electrode (global scan), and performs pairing with the pen P by using the succeeding uplink signals.


The pen P which has established pairing with the input sensor 15 performs processing of transmitting the downlink signal according to the uplink signal periodically received from the input sensor 15. Here, the downlink signal includes the above-described position signal and a data signal which is a carrier signal modulated by transmission data, such as a pen pressure. The input sensor 15 updates the position of the pen P by receiving the position signal thus transmitted, at each of a predetermined number of x electrodes and y electrodes in the vicinity of the previously detected position (local scan), and acquires the data transmitted by the pen P, by receiving the data signal. Then, the updated position and acquired data are supplied to the processor 10 together with the local ID assigned to the pen P. Accordingly, the operating system 30 can sequentially acquire the position and the data such as the pen pressure for each pen P.


Next, the case where the detection target is the finger of the user will be described. The input sensor 15 is configured to supply a predetermined finger detection signal to either the plurality of x electrodes or the plurality of y electrodes, and to periodically perform processing of receiving the signal at the other electrodes. When the finger is close to the intersection of the x electrode and the y electrode, the reception intensity of the finger detection signal received by the input sensor 15 becomes smaller through the capacitance generated between the finger and the x electrode and the y electrode. The input sensor 15 periodically detects the position of the finger of the user by detecting the change in reception intensity.


Here, the input sensor 15 is configured to perform tracking processing to track the detected position of the finger. Specifically, the input sensor 15 is configured to, when newly detecting the position of the finger, impart a finger ID to the detected position and supply the ID to the processor 10 together with the detected position. In the case where the finger is detected at the next timing at a position within a predetermined range with respect to the previously detected position, the same finger ID is imparted to the detected position and supplied to the processor 10 together with the detected position. Accordingly, even in the case where the positions of a plurality of fingers are detected, the operating system 30 can individually acquire the trajectory of each finger in reference to the finger ID.


When the position and other data (including the data received from the pen P, the local ID, and the finger ID) are supplied from the input sensor 15 of the computer 1 as described above, the operating system 30 of the computer 1 performs processing of generating report data including the supplied position and data and transmitting the report data to the computer 2 via the communication device 12. Accordingly, the contents of the operation performed by the user on the sensor surface of the input sensor 15 of the computer 1 are supplied to the operating system 30 of the computer 2.



FIG. 2A is a diagram for illustrating the format of report data R generated by the operating system 30 of the computer 1 for the pen P. As illustrated in the drawing, the report data R generated for the pen P includes position data PD indicating the detected position, pen pressure data PRE indicating the pen pressure received from the pen P, and the above-described local ID (LID). The pen pressure data PRE becomes a value larger than 0 in the case where the pen P comes into contact with the sensor surface, and becomes 0 in the case where the pen P does not come into contact with the sensor surface.


A start report SR generated for the pen P is report data R including, in addition to the position data PD, the pen pressure data PRE, and the local ID, pen-down information PenDown indicating that the pen P has come into contact with the sensor surface. The processor 10 is configured to generate the start report SR in response to a change in pen pressure data PRE from 0 to a value larger than 0.


In addition, an end report ER generated for the pen P is report data R including, in addition to the position data PD, the pen pressure data PRE, and the local ID, pen-up information PenUp indicating that the pen P has been moved away from the sensor surface. The processor 10 is configured to generate the end report ER in response to a change in pen pressure data PRE from a value larger than 0 to 0.



FIG. 2B is a diagram for illustrating the format of report data R generated by the processor 10 for the finger of the user. As illustrated in the drawing, the report data R generated for the pen P includes the position data PD indicating the detected position and the above-described finger ID (FID).


A start report SR generated for the finger includes, in addition to the position data PD and the finger ID, track start information Finger Track Start indicating that tracking of the finger has started. The processor 10 is configured to generate the start report SR in response to the start of new finger tracking processing by the input sensor 15.


An end report ER generated for the finger includes, in addition to the finger ID, loss information Finger Track Loss indicating that the movement of the finger tracked as a series of positions by the tracking processing has not been detected. The position data PD is not included in the end report ER generated for the finger. The processor 10 is configured to generate the end report ER in response to the completion of the tracking processing of the finger by the input sensor 15.


Return to FIG. 1. The operations performed by the user on the sensor surface of the input sensor 15 can include various gestures such as a pinch-out gesture, a pinch-in gesture, a drag gesture, a rotation gesture, and a swipe gesture. It should be noted that the pinch-out gesture is an operation of enlarging the displayed image by expanding the space between two fingers touching the sensor surface, the pinch-in gesture is an operation of reducing the size of the displayed image by narrowing the space between two fingers touching the sensor surface, the drag gesture is an operation of moving the displayed image by sliding the indicator on the sensor surface, the rotation gesture is an operation of rotating the displayed image by sliding the indicator on the sensor surface, and the swipe gesture is an operation of scrolling the screen by sliding the indicator on the sensor surface. Detection of these gestures is performed by the operating system 30 or the drawing application 31 of the computer 2 based on a series of pieces of report data R received from the computer 1.


The drawing application 31 has a function of generating a deformed image by imparting, to the generated image, a deformation corresponding to the contents and amount that are indicated by the gesture detected as described above. The deformations thus imparted to the image include an enlargement, a reduction, a movement, rotation, scrolling, and the like. The deformed image generated by the drawing application 31 is supplied to the computer 1 as a video signal through the desktop window manager 30a of the computer 2. The desktop window manager 30a of the computer 1 updates the display of the display 14 of the computer 1 with the video signal thus supplied. Accordingly, the user of the computer 1 can visually recognize the deformed image generated as a result of the operation made by himself/herself. In addition, the desktop window manager 30a of the computer 2 also supplies the video signal of the deformed image to its own display 14. Accordingly, the user of the computer 2 can also visually recognize the deformed image in a similar manner to the user of the computer 1.



FIG. 3 is a schematic block diagram for illustrating functional blocks of the operating system 30 of the computer 2. As illustrated in the drawing, the operating system 30 functionally includes, in addition to the above-described desktop window manager 30a, a reception buffer 30b and a transmission buffer 30c each of which is a queue in the FIFO (First In First Out) format. The report data R (including the start report SR and the end report ER) received from the computer 1 is written into the reception buffer 30b through the communication device 12.


The drawing application 31 first generates an image PIC displayed on the display 14 of each of the computers 1 and 2 and writes the image PIC into the end of the transmission buffer 30c. Thereafter, when the report data R indicating the result of the operation by the user of the computer 1 is written into the reception buffer 30b, the report data R is read in order from the oldest one, and the gesture is detected based on a series of pieces of report data R including the past report data R read so far. Then, the latest image PIC is deformed based on the detected gesture and the image PIC indicating the result is written into the end of the transmission buffer 30c.


The desktop window manager 30a performs processing of sequentially reading the image PIC from the transmission buffer 30c, generating a video signal based on the read image PIC each time, and supplying the video signal to the communication device 12 and the display 14. The communication device 12 transmits the supplied video signal to the computer 1. Although not illustrated in the drawing, the desktop window manager 30a of the computer 1, which has received the video signal thus transmitted, updates the display of the display 14 of the computer 1 with the received video signal. Accordingly, the user of the computer 1 can visually recognize a state in which the result of the operation is reflected on the image PIC. In addition, the display 14 of the computer 2, which has been supplied with the video signal from the desktop window manager 30a, updates the displayed image with the supplied video signal. Accordingly, the user of the computer 2 can also visually recognize a state in which the result of the operation performed by the other user on the computer 1 is reflected on the image PIC.


Here, according to the above-described processing, since the communication between the computer 1 and the computer 2 is required after the user makes a gesture on the input sensor 15 of the computer 1 until the deformation based on the gesture is reflected on the image displayed on the display 14 of the computer 1, a considerable processing delay occurs. Due to the processing delay, the user may wrongly recognize that the gestures are insufficient, although enough gestures have actually been made, and may make extra gestures in some cases. This causes the image to be excessively deformed as if inertia worked.


Accordingly, the drawing application 31 according to the present embodiment performs cancelation processing that cancels the deformation of the image when the report data R received from the computer 1 is the end report ER. Specifically, as illustrated in FIG. 3, the desktop window manager 30a is instructed to stop transmission of at least some of one or more images PIC accumulated in the transmission buffer 30c. The desktop window manager 30a having received the instruction stops the transmission by discarding the image PIC as a target of the transmission stop from the transmission buffer 30c. Accordingly, the deformations based on the last several gestures among a series of gestures can be canceled, and thus, it is possible to prevent the image from being excessively deformed.



FIG. 4 is a diagram for illustrating a processing flow of image deformation processing performed by the drawing application 31. Hereinafter, cancelation processing that cancels the deformation of the image will be described in more detail with reference to FIG. 4 as well.


The drawing application 31 first generates an image for display on the displays 14 of the computers 1 and 2 as a premise (S1) and writes the generated image into the transmission buffer 30c (S2). Thereafter, the drawing application 31 attempts to acquire the report data R from the reception buffer 30b (S3), and determines whether the report data R has been acquired (S4). In the case where the drawing application 31 determines at S4 that the report data R has not been acquired, it repeats S3. On the other hand, in the case where the drawing application 31 determines that the report data R has been acquired, the acquired report data R is temporarily stored in the memory 11 (S5). Then, the drawing application 31 determines whether the acquired report data R is the end report ER (S6).


In the case where the drawing application 31 determines at S6 that the acquired report data R is not the end report ER, it attempts to detect a gesture based on a series of pieces of report data R acquired so far (S7), and determines whether the gesture has been detected (S8). As a result, in the case where the gesture has not been detected, the flow returns to S3 to repeat the processing. On the other hand, in the case where the gesture has been detected, the deformation corresponding to the contents and amount that are indicated by the detected gesture is imparted to the image (S9). The image to be deformed here is the image that the drawing application 31 has previously written into the transmission buffer 30c. The drawing application 31 which has generated the deformed image at S9 writes the generated deformed image into the transmission buffer 30c (10) and returns to S3.


The drawing application 31 which has determined at S6 that the acquired report data R is the end report ER refers to the number n of canceled images preliminarily set in the memory 11 and determines whether n=0 is satisfied (S11). The details of the number n of canceled images will be described later with reference to FIG. 5 to FIG. 8.


The drawing application 31 which has determined at S11 that n=0 is satisfied returns the processing to S3. In this case, the cancelation processing that cancels the deformation of the image is not performed. On the other hand, the drawing application 31 which has determined at S11 that n=0 is not satisfied controls the desktop window manager 30a to stop the transmission of previous n images (S12). Accordingly, the images corresponding to n pieces of report data R before the end report ER are deleted from the transmission buffer 30c and are not reflected on the displays 14 of the computers 1 and 2.


Then, the drawing application 31 determines whether the control of the desktop window manager 30a has been performed in time (S13). That is, if the value of n is large, there is a possibility that some of the previous n images have already been transmitted at the time of executing S11. In such a case, the drawing application 31 determines that the control of the desktop window manager 30a has not been performed in time. The drawing application 31 which has determined at S13 that the control of the desktop window manager 30a has been performed in time returns the processing to S3. On the other hand, the drawing application 31 which has determined at S13 that the control of the desktop window manager 30a has not been performed in time regenerates the (n+1)-th previous image (rewind image to be displayed on the display 14 in the case where no gesture is made) based on the series of pieces of report data R stored in the memory 11 and writes the image into the transmission buffer 30c (S14). Accordingly, the image displayed on the display 14 is excessively deformed once, but immediately after that, it is possible to return to the image that has not excessively been deformed.



FIG. 5 is a diagram for illustrating a processing flow of number-of-canceled-images setting processing performed by the drawing application 31 to set the above-described number n of canceled images in the memory 11. The drawing application 31 which has started this processing first acquires environment information as illustrated in the drawing (S20).


The environment information is information indicating the environment of the computer 1 and includes, for example, either the size of the display 14 of the computer 1 or a length of time T_delay required to display an image corresponding to the position of the indicator on the display 14 of the computer 1 after the computer 1 detects the position of the indicator. The drawing application 31 only needs to acquire the size of the display 14 of the computer 1 by receiving the information indicating the size of the display 14 from the computer 1. In addition, the drawing application 31 only needs to acquire the length of time T_delay by causing the operating system 30 of the computer 1 to measure the length of time T_delay and receiving the result from the computer 1. The length of time T_delay will be described in detail later with reference to FIG. 6.


Next, the drawing application 31 decides the number n of canceled images based on the acquired environment information (S21). In one example, in the case where the size of the display 14 of the computer 1 is small enough, n=0 is set (that is, the cancelation processing that cancels the deformation of the image is not performed), and as the size of the display 14 becomes larger, n may be increased. Since the excessive deformation of the image is more noticeable as the size of the display 14 on which it is displayed becomes larger, it is possible to keep the excessive deformation of the image to a less noticeable range by deciding the number n of canceled images in such a manner as described above.



FIG. 6 is a diagram for explaining the relation between the length of time T_delay and the number n of canceled images. As illustrated in the drawing, a delay corresponding to the length of time T_delay occurs during a period of time from the time t1 when the user inputs the gesture in the computer 1 to the time t2 when the corresponding deformed image is displayed on the display 14 of the computer 1. Hence, the drawing application 31 only needs to decide the number n of canceled images such that the gestures corresponding to pieces of report data R before the end report ER that correspond to the length of time T_delay are canceled, as illustrated in FIG. 6. By deciding the number n of canceled images in such a manner, it becomes possible to perform an optimal amount of cancelation according to the length of time T_delay.


Return to FIG. 5. The drawing application 31 which has decided the number n of canceled images sets the decided number n of canceled images in the memory 11 (S22). Thereafter, ats S11 and S12 of FIG. 4, the drawing application 31 refers to the number n of canceled images set at S22.



FIG. 7 is a diagram for illustrating a processing flow according to another example of the number-of-canceled-images setting processing performed by the drawing application 31 to set the number n of canceled images in the memory 11. The drawing application 31 which has started this processing first transmits a test interface to the computer 1 as illustrated in the drawing (S30).



FIG. 8 is a diagram for illustrating a window image 40 that is an example of the test interface transmitted at S30. As illustrated in the drawing, the window image 40 has a drawing area 41, a test image 42 arranged in the drawing area 41, a slider 43, and an enter button 44. The test image 42 is an image that can be deformed according to the gesture made by the user. For example, when the user pinches out on the test image 42, the test image 42 is magnified. The slider 43 is a component for adjusting the number n of canceled images based on an operation made by the user, and is configured such that any integer of 0 to a predetermined numerical value (10 in the example of FIG. 8) can be selected. Selecting 0 on the slider 43 means that the cancelation processing that cancels the deformation of the image is not performed. In addition, selecting a value equal to or larger than 1 on the slider 43 means that the degree of the cancelation processing that cancels the deformation of the image is set. The enter button 44 is a button for fixing the number n of canceled images to the value set on the slider 43.


Return to FIG. 7. The drawing application 31 tentatively decides the number n of canceled images based on the current position of the slider 43 (S31). Then, with the use of the tentatively decided number n of canceled images, the image deformation processing is performed based on the operation made by the user (S32). Specifically, the processing at S32 is the image deformation processing illustrated in FIG. 4, and is performed in the background of the processing illustrated in FIG. 7. The drawing application 31 monitors the state of the enter button 44 while executing S31 and S32 (S33). Then, when the enter button 44 is pressed (clicked or tapped), processing of deciding the number n of canceled images based on the current position of the slider 43 is performed (S34), and the decided number n of canceled images is set in the memory 11 (S35). By the above-described processing, the user of the computer 1 can select the optimal value of the number n of canceled images while checking the actual deformation status.


As described above, according to the image processing method of the present embodiment, since the deformation of the image is canceled according to the end report ER, it is possible to prevent the deformation of the image based on the gesture from becoming excessive due to a processing delay.


In addition, since the number n of canceled images is set based on the size of the display 14 of the computer 1, the length of time T_delay required to display the image corresponding to the position of the indicator on the display 14 of the computer 1 after the computer 1 detects the position of the indicator, and the like, it is possible to optimize the number n of canceled images according to the environment.


Further, since the test interface including the test image that can be deformed according to the gesture made by the user and the slider for selecting the number n of canceled images is displayed on the display of the computer 1, the user of the computer 1 can select the optimal value of the number n of canceled images while checking the actual deformation status.


It should be noted that, in the present embodiment described above, the drawing application 31 deforms the image. However, the desktop window manager 30a may deform the image.



FIG. 9 is a schematic block diagram for illustrating functional blocks of the operating system 30 of the computer 2 according to a modified example of the present embodiment. According to the present modified example, an image PIC generated by the drawing application 31 is written into the transmission buffer 30c by the desktop window manager 30a. Then, the desktop window manager 30a sequentially reads the report data R from the reception buffer 30b, detects a gesture based on a series of pieces of report data R including the past report data R read so far, deforms the latest image PIC based on the detected gesture, and writes the image PIC indicating the result to the end of transmission buffer 30c. The cancelation processing that cancels the deformation of the image in this case is performed as internal processing of the desktop window manager 30a. Even in this way, the image PIC reflecting the result of the operation performed by the user can be displayed on the displays 14 of the computers 1 and 2, and the image PIC can be prevented from being excessively deformed.


In addition, although the example of setting the number n of canceled images based on the size of the display 14 of the computer 1 has been described in the present embodiment, the number n of canceled images may be set based on the moving speed of the indicator in the computer 1. It should be noted that the moving speed is the distance by which the indicator moves per unit time, and the unit of distance may be such a length as a sensor meter or may be the number of pixels. In this case, it is preferable that the drawing application 31 causes the computer 1 to acquire the average value of the moving speed of the indicator, and as the acquired average value is smaller, the number n of canceled images is set smaller. As the moving speed of the indicator is smaller, the excessive deformation of the image becomes less noticeable, and thus, it is possible to cancel the image deformation only by an optimal amount even in such a manner as described above.


Next, an image processing method according to a second embodiment of the present disclosure will be described. The system configurations of the computers 1 and 2 executing the image processing method according to the present embodiment are similar to those in FIG. 1. The image processing method according to the present embodiment differs from the image processing method according to the first embodiment in that, instead of executing the cancelation processing that cancels the image deformation in the computer 2, the report data R transmitted from the computer 1 is replaced with data having a small data size (specifically, report data for the keyboard or mouse) and is then transmitted. Hereinafter, the explanation will be made by focusing on the differences.



FIG. 10 is a diagram for illustrating a processing flow of report data transmission processing performed by the operating system 30 of the computer 1. As illustrated in the drawing, when the operating system 30 of the computer 1 according to the present embodiment receives the position and data from an input sensor S40 (S40), the received position and data are temporarily stored in the memory 11 (S41). Then, based on a series of positions and data received so far, the operating system 30 attempts to detect a gesture (S42), and determines whether the gesture has been detected (S43). The processing of S41 to S43 is nothing other than the processing of S5, S7, and S8 in FIG. 4 performed in the computer 1.


In the case where the operating system 30 of the computer 1 determines at S43 that the gesture has been detected, it determines whether the detected gesture corresponds to a fixed gesture stored in a correspondence table to be described later (S44). The details of the correspondence table will be described later with reference to FIGS. 11A and 11B. The operating system 30 of the computer 1 which has determined at S44 that the detected gesture corresponds to the fixed gesture acquires a key operation and a mouse operation corresponding to the detected gesture, from the correspondence table, and transmits report data for the keyboard or mouse (report data for a device different from the input sensor 15) indicating the acquired operation to the computer 2 (S46). On the other hand, in the case where the operating system 30 of the computer 1 determines at S43 that the gesture has not been detected and where the operating system 30 determines at S44 that the detected gesture does not correspond to the fixed gesture, it transmits report data for the input sensor 15 to the computer 2 (S47). The report data transmitted at S47 is the same as the report data described in the first embodiment.


Each of FIGS. 11A and 11B is a diagram for illustrating an example of the correspondence table that associates the types of gestures with commands registered in the drawing application 31. The command includes either a key operation or a mouse operation, or a combination thereof. The operating system 30 of the computer 1 acquires the key operation or mouse operation corresponding to the detected gesture, by referring to the correspondence table at S45 of FIG. 10.


Each of the examples of the correspondence table will specifically be described below. In the example of FIG. 11A first, the simultaneous pressing of the “control” key and the “+” key is associated with the pinch-out gesture, and the simultaneous pressing of the “control” key and the “−” key is associated with the pinch-in gesture. Therefore, in the case where the gesture detected at S42 is, for example, the pinch-out gesture, the operating system 30 of the computer 1 acquires at S44 the simultaneous pressing of the “control” key and the “+” key as the key operation or mouse operation corresponding to the detected gesture, and transmits at S46 report data indicating the simultaneous pressing of the “control” key and the “+” key.


Next, in the example of FIG. 11B, a combination of “left click” and “scroll up mouse wheel” is associated with the pinch-out gesture, a combination of “left click” and “scroll down mouse wheel” is associated with the pinch-in gesture, and a combination of “left click” and “moving direction” is associated with the swipe gesture. Thus, in the case where the gesture detected at S42 is, for example, the swipe gesture, the operating system 30 of the computer 1 acquires at S44 a combination of “left click” and “moving direction” as the key operation or mouse operation corresponding to the detected gesture, and transmits at S46 report data indicating “left click” and “moving direction.” It should be noted that specific details of the “moving direction” may be decided based on the moving direction of the indicator indicated by a series of positions (positions of the pen P or finger) input from the input sensor 15.


As described above, according to the image processing method of the present embodiment, the gesture performed by the pen P or finger can be replaced with data having a small data size (specifically, report data for the keyboard or mouse) and transmitted. Since the processing delay can thus be reduced, it is possible to prevent the deformation of the image based on the gesture from becoming excessive due to the processing delay, similarly to the first embodiment.


Although the preferred embodiments of the present disclosure have been described above, it is obvious that the present disclosure is not limited to such embodiments at all, and the present disclosure can be carried out in various forms without departing from the gist thereof.


DESCRIPTION OF REFERENCE SYMBOLS






    • 1, 2: Computer


    • 10: Processor


    • 11: Memory


    • 12: Communication device


    • 13: Input device


    • 14: Display


    • 15: Input sensor


    • 30: Operating system


    • 30
      a: Desktop window manager


    • 30
      b: Reception buffer


    • 30
      c: Transmission buffer


    • 31: Drawing application


    • 40: Window image (test interface)


    • 41: Drawing area


    • 42: Test Image


    • 43: Slider


    • 44: Enter button

    • ER: End report

    • FID: Finger ID

    • Finger Track Start: Track start information

    • Finger Track Loss: Loss information

    • LID: Local ID

    • P: Pen

    • PD: Position data

    • PenDown: Pen-down information

    • PenUp: Pen-up information

    • PIC: Image

    • PRE: Pen pressure data

    • R: Report data

    • SR: Start report





The various embodiments described above can be combined to provide further embodiments. All of the U.S. patents, U.S. patent application publications, U.S. patent applications, foreign patents, foreign patent applications and non-patent publications referred to in this specification and/or listed in the Application Data Sheet are incorporated herein by reference, in their entirety. Aspects of the embodiments can be modified, if necessary to employ concepts of the various patents, applications and publications to provide yet further embodiments.


These and other changes can be made to the embodiments in light of the above-detailed description. In general, in the following claims, the terms used should not be construed to limit the claims to the specific embodiments disclosed in the specification and the claims, but should be construed to include all possible embodiments along with the full scope of equivalents to which such claims are entitled. Accordingly, the claims are not limited by the disclosure.

Claims
  • 1. An image drawing method performed by a system, the system including: a host computer that executes an operating system and generates a plurality of images, anda remote computer that includes an input sensor having a sensor surface and a display and that displays at least some of the images generated by the host computer on the display,the image drawing method comprising: by the remote computer, sequentially detecting a plurality of positions of an indicator on the sensor surface at a predetermined sampling rate using the input sensor;by the remote computer, sequentially transmitting a plurality of pieces of report data including the plurality of positions of the indicator to the host computer, wherein the remote computer transmits one of the pieces of report data each time one of the positions of the indicator is detected;by the host computer, detecting a gesture based on a series of the pieces of report data received from the remote computer;by the host computer, generating one or more deformed images by imparting a deformation corresponding to contents and an amount that are indicated by the gesture, to one or more of the images or a previously-transmitted deformed image;by the host computer, transmitting the one or more deformed images to the remote computer; andby the host computer, performing cancelation processing that cancels the generating of the one or more deformed images when one or more of the pieces of report data received from the remote computer includes an end report indicating that the indicator has been moved away from the sensor surface.
  • 2. The image drawing method according to claim 1, wherein the cancelation processing cancels the generating of a plurality of deformed images corresponding to one or more pieces of report data before the end report, the one or more pieces of report data corresponding to a length of time required to display one or more of the images corresponding to one or more of the positions of the indicator on the display after the remote computer detects the one or more of position of the indicator.
  • 3. The image drawing method according to claim 1, wherein the host computer includes: a transmission buffer that accumulates the one or more deformed images, anda transmission unit that sequentially reads and transmits the one or more deformed images accumulated in the transmission buffer, andthe cancelation processing stops transmission of at least some of the one or more deformed images accumulated in the transmission buffer, when the report data received from the remote computer includes the end report indicating that the indicator has been moved away from the sensor surface.
  • 4. The image drawing method according to claim 3, wherein the cancelation processing discards, from the transmission buffer, the at least some of the one or more deformed images.
  • 5. The image drawing method according to claim 1, wherein the cancelation processing, in a case where the gesture has not been made, generates a rewind image to be displayed on the display and transmits the rewind image to the remote computer.
  • 6. The image drawing method according to claim 1, wherein the cancelation processing cancels a deformation corresponding to a predetermined number of pieces of report data before the end report, andthe predetermined number is preliminarily set in a memory of the host computer.
  • 7. The image drawing method according to claim 6, wherein the predetermined number is decided based on environment information indicating an environment of the remote computer.
  • 8. The image drawing method according to claim 7, further comprising: by the host computer setting whether to perform the cancelation processing, according to the environment information indicating the environment of the remote computer.
  • 9. The image drawing method according to claim 7, wherein the environment information includes either a size of the display or a length of time required to display one or more of the images corresponding to one or more of the positions of the indicator on the display after the remote computer detects the one or more of positions of the indicator.
  • 10. The image drawing method according to claim 1, further comprising: by the host computer, causing the display to display a test interface for the cancelation processing,wherein the test interface includes a test image to be deformed according to the gesture and a component for setting presence or absence of the cancelation processing, andby the host computer, setting whether to perform the cancelation processing, according to the component.
  • 11. The image drawing method according to claim 10, wherein the component includes a part that sets a degree of the cancelation processing, andthe method further comprises, by the host computer, changing the degree of the cancelation processing according to the component.
  • 12. The image drawing method according to claim 1, wherein the gesture is any of a pinch-out gesture, a pinch-in gesture, a drag gesture, or a rotation gesture.
  • 13. The image drawing method according to claim 1, wherein the deformation is any of an enlargement, a reduction, a movement, or a rotation.
  • 14. The image drawing method according to claim 1, wherein the deformation is performed by either an application operating on an operating system executed by the host computer or a desktop window manager included in the operating system executed by the host computer.
  • 15. The image drawing method according to claim 1, wherein the indicator is a finger,the method further comprises, by the remote computer, performing tracking processing that tracks a position of the finger, andthe end report is data including information indicating that a movement of the finger tracked as a series of positions by the tracking processing has not been detected.
  • 16. The image drawing method according to claim 1, wherein the indicator is a pen that detects a pen pressure and transmits the pen pressure to the remote computer, andwherein the end report contains data including pen-up information indicating that the pen pressure has changed from a value larger than 0 to 0.
  • 17. An image drawing method performed by a system, the system including: a host computer that executes an operating system and generates a plurality of images, anda remote computer that includes an input sensor having a sensor surface and a display and that displays at least some of the images generated by the host computer on the display,the image drawing method comprising: by the remote computer, sequentially detecting a plurality of positions of an indicator on the sensor surface at a predetermined sampling rate using the input sensor;by the remote computer, determining whether a movement of the indicator indicated by the plurality of positions of the indicator corresponds to a fixed gesture;by the remote computer, generating report data for the input sensor;by the remote computer, transmitting the report data to the host computer in a case where the movement of the indicator is not determined to correspond to the fixed gesture;by the remote computer, generating report data for a device different from the input sensor; andby the remote computer, transmitting the report data for the device to the host computer in a case where the movement of the indicator is determined to correspond to the fixed gesture.
  • 18. The image drawing method according to claim 17, wherein the fixed gesture is any of a pinch-out gesture, a pinch-in gesture, or a swipe gesture,the device different from the input sensor is a mouse, andthe report data for the device different from the input sensor indicates at least one of a wheel scroll and a click of the mouse.
  • 19. The image drawing method according to claim 17, further comprising: by the remote computer, storing a table that associates a type of the fixed gesture with a command registered in an application performed by the host computer.
Priority Claims (1)
Number Date Country Kind
2021-017152 Feb 2021 JP national
Continuations (1)
Number Date Country
Parent PCT/JP2022/001733 Jan 2022 US
Child 18362820 US