Detailed Description
Various preferred embodiments of the present invention will be described below with reference to the accompanying drawings. The following description with reference to the accompanying drawings is provided to assist in understanding the exemplary embodiments of the invention as defined by the claims and their equivalents. It includes various specific details to assist understanding, but they are to be construed as merely illustrative. Accordingly, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Also, in order to make the description clearer and simpler, a detailed description of functions and configurations well known in the art will be omitted.
First, a first electronic apparatus according to an embodiment of the present invention will be described with reference to fig. 1. For example, the first electronic device here may be a personal computer, a smart television, or the like. As shown in fig. 1, the firstelectronic device 100 includes: adisplay unit 101, aninput receiving unit 102, acommunication unit 103, aconnection detection unit 104, and acontrol unit 105.
Thedisplay unit 101 is a device for presenting display content. For example, thedisplay unit 101 may display various forms of content such as images, videos, web pages, icons, and the like. Thedisplay unit 101 may be a Liquid Crystal Display (LCD), for example. The present invention is concerned with how the identification image displayed on the firstelectronic device 100 can be scanned by the secondelectronic device 200 in a more efficient manner. Therefore, in the present invention, thedisplay unit 101 is also used to display an identification image.
As one of the most widely used embodiments, the identification image may be a two-dimensional code. The two-dimensional code is a new generation bar code technology for recording data symbol information by using black and white rectangular matrixes with specific geometric figures distributed on a plane (in a two-dimensional direction) according to a certain rule, consists of a two-dimensional code matrix figure, a two-dimensional code number and lower explanatory characters, and has the characteristics of large information amount, strong error correction capability, high recognition speed, omnibearing recognition and reading and the like. Information needing to be accessed and used can be coded into the two-dimensional code. Then, the coded information is obtained by reading the two-dimensional code, so that the method can realize fast and convenient web page browsing, image-text downloading, music and video downloading, coupon acquisition, lottery participation and enterprise product information understanding, save the complicated process of URL input and realize one-key Internet surfing. Meanwhile, the method can conveniently identify and store the business card, automatically input the short message, acquire public services (such as weather forecast), and realize various functions of electronic map inquiry positioning, mobile phone reading and the like. The two-dimension code can provide convenient entrance for network browsing, downloading, online video, online shopping, online payment and the like.
Theinput receiving unit 102 is used to receive an input operation from a user. For example, in the case where the firstelectronic device 100 is a personal computer, theinput receiving unit 102 may be a mouse. Alternatively, for another example, in the case where the firstelectronic device 100 is a smart television, theinput receiving unit 102 may be a remote controller.
Thecommunication unit 103 is used to perform data transmission with the secondelectronic device 200. Here, the second electronic device is another electronic device completely independent from the firstelectronic device 100. For example, the secondelectronic device 200 may be a portable smart device such as a cell phone, a tablet computer, and the like.
Theconnection detection unit 104 is configured to detect whether the firstelectronic device 100 is connected to the secondelectronic device 200.
When theinput receiving unit 102 receives a first input operation from a user, which is a preset operation, if theconnection detecting unit 104 detects that the firstelectronic device 100 is connected to the secondelectronic device 200, thecontrol unit 105 controls thecommunication unit 103 to transmit the identification image to the secondelectronic device 200.
Therefore, in the first electronic device according to the present invention, when the identification image is displayed on the firstelectronic device 100, if the secondelectronic device 200 connected to the firstelectronic device 100 desires to scan the identification image to obtain the information contained therein, it is possible to directly transmit the identification image to the secondelectronic device 200 and perform scan recognition on the secondelectronic device 200 side only by performing a preset input operation on the firstelectronic device 100. It can be seen that, in the present invention, the step of starting the third-party application by the secondelectronic device 200 and using the camera in the secondelectronic device 200 to perform scanning is omitted, so that the operation of the user is simplified, and since the identification image does not need to be scanned by using the camera in the secondelectronic device 200 but is directly transmitted to the secondelectronic device 200, the problem that the shooting effect of the identification image may be affected by light is avoided.
Or, on the other hand, when theinput receiving unit 102 receives a first input operation from the user, which is a preset operation, if theconnection detecting unit 104 detects that the firstelectronic device 100 is not connected to the secondelectronic device 200, thecontrol unit 105 processes the identification image.
Wherein the processing of the identification image by thecontrol unit 105 may specifically comprise the following two cases. For example, when the firstelectronic device 100 has a two-dimensional code recognition capability, thecontrol unit 105 recognizes the identification image to extract information encoded therein. Alternatively, when the firstelectronic device 100 does not have the two-dimensional code recognition capability, thecontrol unit 105 saves only the identification image.
In addition, after thecommunication unit 103 transmits the identification image to the secondelectronic device 200, thecommunication unit 103 may be further configured to receive a recognition result of the identification image by the secondelectronic device 200. Therefore, when the firstelectronic device 100 does not have the two-dimensional code recognition function, the two-dimensional code recognition result returned by the secondelectronic device 200 can quickly display a webpage, an online payment, a video and the like on the firstelectronic device 100 side.
Specifically, as a first example, the first input operation described above may be a mouse right click operation on the identification image. For example, the cursor may be moved to the identification image and a right mouse button may be clicked to select an option sent to the second electronic device.
Of course, the invention is not limited thereto. As a second example, the first input operation described above may also be an operation of dragging the logo image displayed on the display unit to a specific position.
For example, as a first display example of the display unit, an image from the firstelectronic apparatus 100 and an image from the secondelectronic apparatus 200 may be simultaneously displayed on the display unit of the firstelectronic apparatus 100. Specifically, thedisplay unit 101 may be divided into a first display area and a second display area. Wherein an image from the first electronic device is displayed in a first display area and an image from the second electronic device is displayed in a second display area. Of course, the identification image described above is displayed in the first display region.
In this case, the first input operation is an operation of dragging the identification image displayed in the first display region into the second display region, and the specific position is any position in the second display region.
In addition, in this case, thecommunication unit 103 may be further configured to receive data to update the display interface of the secondelectronic device 200 from the secondelectronic device 200, and thedisplay unit 101 may be further configured to update the display in the second display area based on the received data.
Alternatively, as another example of the second display example of the display unit, only the image from the firstelectronic apparatus 100 may be displayed on the display unit of the firstelectronic apparatus 100, and the image from the secondelectronic apparatus 200 may not be displayed.
In this case, for example, as one possible embodiment, the first input operation may be dragging an identification image displayed on the display unit to a specific position on the display unit.
In addition, when theinput receiving unit 102 receives a drag operation from a user and in response thereto the object displayed on thedisplay unit 101 has moved to the edge of the screen, if theinput receiving unit 102 further receives the drag operation of the user, thecommunication unit 103 transmits information related to the drag operation to the secondelectronic device 200 so as to perform continued display of the object on the second display unit of the secondelectronic device 200. For example, when the user moves the cursor to the edge of the display screen of the firstelectronic device 100 through the mouse, if the user continues to move the cursor through the mouse, the cursor continues to be moved on the display screen of the secondelectronic device 200 in response to the movement of the mouse. Thereby, a continuous display on both devices is achieved.
In this case, for example, as another possible embodiment, the first input operation may be an operation of dragging an identification image displayed on thedisplay unit 101 onto the second display unit, and the specific position is any position on the second display unit.
Next, a second electronic apparatus according to an embodiment of the present invention will be described with reference to fig. 2. The secondelectronic device 200 is connected to the firstelectronic device 100 described above. As described above, the secondelectronic device 200 may be a portable smart device such as a mobile phone, a tablet computer, or the like. As shown in fig. 2, the secondelectronic device 200 includes: adisplay unit 201, a communication unit 202, and aprocessing unit 203.
Thedisplay unit 201 is used to present display content to a user. For example, thedisplay unit 201 may display various forms of content such as images, videos, web pages, icons, and the like. Thedisplay unit 201 may be, for example, a Liquid Crystal Display (LCD).
The communication unit 202 is configured to perform data transmission with the firstelectronic device 100.
When the communication unit 202 receives the identification image from the firstelectronic device 100, theprocessing unit 103 performs scanning on the identification image to acquire information contained therein.
Wherein, after theprocessing unit 203 acquires the information contained in the identification image, thedisplay unit 201 is further configured to display an interface related to the information. For example, thedisplay unit 201 may quickly display an application download interface, a web page, and the like based on information contained in the two-dimensional code.
Also, as a possible implementation manner, after theprocessing unit 103 performs scanning on the identification image to acquire the information contained therein, the communication unit 202 may be further configured to send the recognition result of the two-dimensional code back to the firstelectronic device 100. Therefore, when the firstelectronic device 100 does not have the two-dimensional code recognition function, the two-dimensional code recognition result returned by the secondelectronic device 200 can quickly display a webpage, an online payment, a video and the like on the firstelectronic device 100 side.
In addition, in the case where an image from the second electronic device can be displayed on the display unit of the first electronic device, the communication unit 202 may be further configured to transmit data for updating the display interface of the secondelectronic device 200 to the first electronic device.
In the above, the first electronic device and the second electronic device according to the embodiment of the present invention have been described in detail with reference to fig. 1 and 2. Next, a control method applied to the first electronic device and the second electronic device according to an embodiment of the present invention will be described with reference to fig. 3 and 4.
First, a control method applied to a first electronic device according to an embodiment of the present invention is described with reference to fig. 3. As described above, the first electronic device may be a personal computer, a smart television, or the like, and the first electronic device includes the first display unit.
As shown in fig. 3, the control method includes the following steps.
First, in step S301, an identification image is displayed. As one of the most widely used embodiments, the identification image may be a two-dimensional code. As described above, the identification image may be a two-dimensional code as one of the most widely used embodiments at present. Information needing to be accessed and used can be coded into the two-dimensional code. Then, the quick operations of obtaining the download link, displaying the webpage and the like can be realized by reading the two-dimensional code to obtain the coded information.
Then, in step 302, an input operation is received.
Next, in step S303, it is determined whether a first input operation is received, where the first input operation is a preset operation.
If it is determined in step S303 that the first input operation is received, the process proceeds to step S304. In step S304, it is determined whether the first electronic device is connected to the second electronic device. If it is determined in step S304 that the first electronic device is connected to the second electronic device, the process proceeds to step S305. In step S305, the identification image is sent to the second electronic device.
On the other hand, if it is determined in step S303 that the first input operation is not received, the determination of step S303 is performed again after waiting for a predetermined time interval.
Therefore, in the control method according to the present invention, when displaying the identification image on the first electronic device, if the second electronic device connected to the first electronic device desires to scan the identification image to obtain the information contained therein, it is only necessary to perform a preset input operation on the first electronic device to directly transmit the identification image to the second electronic device and perform scan recognition on the second electronic device side. Therefore, in the invention, the step of starting the third-party application by the second electronic equipment and using the camera in the second electronic equipment to scan is omitted, so that the operation of the user is simplified, and the problem that the shooting effect of the identification image is possibly influenced by light rays is avoided because the identification image is directly transmitted to the second electronic equipment without using the camera in the second electronic equipment to scan the identification image.
On the other hand, if it is determined in step S304 that the first electronic device is not connected to the second electronic device, the process proceeds to step S306. In step S306, the identification image is processed.
Wherein processing the identification image in step S306 may specifically include the following two cases. For example, when the first electronic device has a two-dimensional code recognition capability, the identification image is recognized to extract information encoded therein at step S306. Alternatively, when the first electronic device does not have the two-dimensional code recognition capability, only the identification image is saved in step S306.
In addition, after the identification image is transmitted to the second electronic device in step S305, the control method may further include the following steps (not shown in the figure): and receiving the identification result of the second electronic equipment to the identification image. Therefore, when the first electronic device does not have the two-dimension code recognition function, the two-dimension code recognition result returned by the second electronic device can quickly display a webpage, online payment, video and the like on the first electronic device.
Specifically, as a first example, the first input operation described above may be a mouse right click operation on the identification image. For example, the cursor may be moved to the identification image and a right mouse button may be clicked to select an option sent to the second electronic device.
Of course, the invention is not limited thereto. As a second example, the first input operation described above may also be an operation of dragging the logo image displayed on the display unit to a specific position.
For example, as a first display example, an image from a first electronic device and an image from a second electronic device may be simultaneously displayed on a display unit of the first electronic device. Specifically, before step S301, the control method may further include the following steps (not shown in the figure): displaying an image from the first electronic device in a first display area of the first display unit, and displaying an image from the second electronic device in a second display area of the first display unit. Of course, the identification image displayed in step S301 described above is displayed in the first display area of the first display unit.
In this case, the first input operation is an operation of dragging the logo image displayed in the first display region into the second display region, and the specific position is any position in the second display region.
In this case, the control method may further include, after step S305, the steps of (not shown in the figure): receiving data from a second electronic device to update a display interface of the second electronic device, and updating a display within the second display area based on the received data.
Alternatively, as another example, as the second display example, only the image from the first electronic device may be displayed on the display unit of the first electronic device, and the image from the second electronic device may not be displayed.
In this case, for example, as one possible embodiment, the first input operation may be dragging the logo image displayed on the first display unit to a specific position on the first display unit.
In addition, when a drag operation from a user is received and an object displayed on the first display unit has moved to an edge of a screen in response thereto, if the drag operation of the user is further received, information related to the drag operation is transmitted to the second electronic device so that a continued display of the object is performed on a second display unit of the second electronic device. For example, when the user moves the cursor to the edge of the display screen of the first electronic device through the mouse, if the user continues to move the cursor through the mouse, the cursor continues to be moved on the display screen of the second electronic device in response to the movement of the mouse. Thereby, a continuous display on both devices is achieved.
In this case, for example, as one possible embodiment, the first input operation may be an operation of dragging the logo image displayed on the first display unit onto the second display unit, and the specific position is any position on the second display unit.
Finally, a control method applied to the second electronic device according to an embodiment of the present invention will be described with reference to fig. 4. As described above, the second electronic device is connected with the first electronic device. As shown in fig. 4, the control method includes the following steps.
First, in step S401, display content is presented to the user.
Then, in step S402, it is determined whether or not the identification image is received.
If it is determined in step S402 that the identification image is received, the process proceeds to step S403. In step S403, scanning is performed on the identification image to acquire information contained therein. Then, in step S404, an interface related to the information is displayed.
If it is determined in step S402 that the identification image is not received, a predetermined period of time is waited to perform the determination of step S402 again.
Also, as a possible implementation, after the step S403 performs scanning on the identification image to acquire the information contained therein, the control method may further include the following steps (not shown in the figure): and sending the identification result of the two-dimensional code back to the first electronic equipment. Therefore, when the first electronic device does not have the two-dimension code recognition function, the two-dimension code recognition result returned by the second electronic device can quickly display a webpage, online payment, video and the like on the first electronic device.
In addition, in a case where an image from a second electronic device can be displayed on the display unit of the first electronic device, the control method may further include the step of transmitting data to update the display interface of the second electronic device to the first electronic device.
Heretofore, the first electronic apparatus and the second electronic apparatus and the control method applied to the first electronic apparatus and the second electronic apparatus according to the embodiment of the present invention have been described in detail with reference to fig. 1 to 4. With the first electronic device, the second electronic device, and the control method according to the embodiments of the present invention, when displaying the identification image on the first electronic device, if the second electronic device connected to the first electronic device desires to scan the identification image to obtain the information contained therein, it is possible to directly transmit the identification image to the second electronic device and perform scan recognition on the second electronic device side only by performing a preset input operation on the first electronic device. Therefore, in the invention, the step of starting the third-party application by the second electronic equipment and using the camera in the second electronic equipment to scan is omitted, so that the operation of the user is simplified, and the problem that the shooting effect of the identification image is possibly influenced by light rays is avoided because the identification image is directly transmitted to the second electronic equipment without using the camera in the second electronic equipment to scan the identification image.
It should be noted that, in the present specification, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Finally, it should be noted that the series of processes described above includes not only processes performed in time series in the order described herein, but also processes performed in parallel or individually, rather than in time series.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary hardware platform, and may also be implemented by software entirely. With this understanding in mind, all or part of the technical solutions of the present invention that contribute to the background can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments or some parts of the embodiments of the present invention.
The present invention has been described in detail, and the principle and embodiments of the present invention are explained herein by using specific examples, which are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.