Scanning equipment control method and device, electronic equipment and storage medium

By detecting and matching the working mode and target strategy of the scanning device, and dynamically enabling or disabling the device, it solves the problem in the existing technology that the scanning software is difficult to be compatible with new device forms or combinations, and achieves rapid compatibility and efficient device management.

CN118567265APending Publication Date: 2024-08-30SCANTECH (HANGZHOU) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410414523.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-08
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing scanning software is difficult to quickly be compatible with and adapt to new scanning device forms or combinations of uses, and users cannot freely select multiple scanning devices.

Method used

By detecting the connected scanning device, obtain the current working mode, determine the target policy based on this mode, send control instructions to the scanning device to enable or disable the device, realize dynamic matching and reallocation of the device, and ensure that the device is in a new form or Can be quickly compatible when used in combination.

Benefits of technology

It achieves rapid compatibility and adaptation when scanning devices take on new forms or combinations of uses, improving user experience and device management efficiency. Users only need to set the main device and its working mode to enable multiple scanning devices required. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567265A
    Figure CN118567265A
Patent Text Reader

Abstract

The invention provides a scanning equipment control method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a current working mode when it is detected that scanning equipment is connected and main scanning equipment exists, and the current working mode is set based on a working mode of the main scanning equipment; determining a first target strategy based on the current working mode and the scanning device, wherein the first target strategy is used for determining whether the scanning device is started; and sending a corresponding control instruction to the scanning device based on the first target strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of scanning technology and communication technology, and in particular to a scanning device control method, device, electronic device and storage medium. Background Art

[0002] Most existing scanning software is designed to be used in connection with a single scanning device, and only supports the connection of multiple numbers and types of scanning devices in specific circumstances. For example, when performing tracking scanning, the scanning software can connect to a scanner and multiple trackers at the same time. However, the above method has fixed constraints on the number, type and usage of scanning devices. When the scanning device has a new form or a new combination of usage, the software cannot be quickly compatible and adapted, and users cannot choose freely. Summary of the invention

[0003] The present application provides a scanning device control method, device, electronic device and storage medium.

[0004] An embodiment of the present application provides a scanning device control method, the method comprising:

[0005] When it is detected that the scanning device is connected and the main scanning device already exists, the current working mode is obtained, and the current working mode is set based on the working mode of the main scanning device;

[0006] Determine a first target policy based on the current working mode and the scanning device, wherein the first target policy is used to determine whether the scanning device is enabled;

[0007] Sending corresponding control instructions to the scanning device based on the first target strategy.

[0008] Wherein, determining the first target strategy based on the current working mode and the scanning device includes:

[0009] Determine a target device range based on the current working mode;

[0010] Matching the scanning device with the target device range;

[0011] If the match is successful, it is determined that the first target policy is to enable the scanning device.

[0012] The sending of a corresponding control instruction to the scanning device based on the first target strategy includes:

[0013] sending an activation instruction to the scanning device based on the first target policy;

[0014] When receiving the enabling information sent by the scanning device, the scanning device is determined as a secondary scanning device.

[0015] The step of matching the scanning device with the target device range includes at least one of the following:

[0016] If the device type of the scanning device is the same as the type of at least one target device included in the target device range, determining that the matching is successful;

[0017] If the operation that can be performed by the scanning device is the same as at least one target operation included in the target device range, determining that the matching is successful;

[0018] If the device parameters of the scanning device belong to the device parameter range set by the target device range, it is determined that the match is successful.

[0019] The method further comprises:

[0020] Sending an enabling instruction to a non-master scanning device, wherein the enabling instruction is determined based on a user operation;

[0021] When receiving the activation information sent by the non-main scanning device, changing the non-main scanning device to the main scanning device and changing the original main scanning device to the non-main scanning device;

[0022] Acquire the working mode of the main scanning device;

[0023] adjusting the current working mode based on the working mode of the main scanning device;

[0024] Determine a second target policy based on the adjusted current working mode, wherein the second target policy is used to determine whether the non-main scanning device is enabled;

[0025] Sending corresponding control instructions to the non-main scanning device based on the target strategy.

[0026] The method further comprises:

[0027] When it is detected that the scanning device is connected and there is no main scanning device, sending an activation instruction to the scanning device;

[0028] Upon receiving the activation information sent by the scanning device, determining the scanning device as a main scanning device;

[0029] Acquire the working mode of the main scanning device;

[0030] The current operating mode is determined and set based on the operating mode of the main scanning device.

[0031] Another aspect of the present application provides a scanning device control device, the device comprising:

[0032] A communication module, configured to obtain a current working mode when detecting that a scanning device is connected and a main scanning device already exists, wherein the current working mode is set based on the working mode of the main scanning device;

[0033] A calculation module, configured to determine a first target strategy based on the current working mode and the scanning device, wherein the first target strategy is used to determine whether the scanning device is enabled;

[0034] The communication module is further configured to send corresponding control instructions to the scanning device based on the first target strategy.

[0035] Wherein, the device further comprises:

[0036] The communication module is further used to send an enabling instruction to the non-main scanning device, wherein the enabling instruction is determined based on a user's operation;

[0037] A processing module, configured to change the non-main scanning device into a main scanning device and change the original main scanning device into a non-main scanning device when receiving the activation information sent by the non-main scanning device;

[0038] The communication module is further used to obtain the working mode of the main scanning device;

[0039] The processing module is further used to adjust the current working mode based on the working mode of the main scanning device;

[0040] The calculation module is further used to determine a second target strategy based on the adjusted current working mode, wherein the second target strategy is used to determine whether the non-main scanning device is enabled;

[0041] The communication module is further configured to send corresponding control instructions to the non-main scanning device based on the target strategy.

[0042] Another aspect of the present invention provides an electronic device, comprising: an input-output system and a processor;

[0043] When the input / output system detects that the scanning device is connected and the main scanning device already exists, the current working mode is acquired; and corresponding control instructions are sent to the scanning device based on the first target strategy;

[0044] The processor determines a first target strategy based on the current operating mode and the scanning device.

[0045] On the other hand, the present invention provides a computer-readable storage medium, which stores a computer program. The computer program is used to obtain a current operating mode when it detects that a scanning device is connected and a main scanning device already exists; determine a first target strategy based on the current operating mode and the scanning device; and send corresponding control instructions to the scanning device based on the first target strategy.

[0046] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:

[0048] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0049] Figure 1 A flowchart of a scanning device control method according to an embodiment of the present application is shown;

[0050] Figure 2 A flowchart of a scanning device control method according to another embodiment of the present application is shown;

[0051] Figure 3 A flowchart of a scanning device control method according to another embodiment of the present application is shown;

[0052] Figure 4 A flowchart of a scanning device control method according to another embodiment of the present application is shown;

[0053] Figure 5 A flowchart of a scanning device control method according to another embodiment of the present application is shown;

[0054] Fig. 6A A schematic diagram showing a scanning device control method according to an embodiment of the present application is shown;

[0055] Figure 6B A schematic diagram showing a scanning device control method according to another embodiment of the present application is shown;

[0056] Figure 6C A schematic diagram showing a scanning device control method according to another embodiment of the present application is shown;

[0057] Fig.6DA schematic diagram showing a scanning device control method according to another embodiment of the present application is shown;

[0058] Figure 7 A schematic diagram of the structure of a scanning device control device according to an embodiment of the present application is shown;

[0059] Figure 8 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0060] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0061] In order to enable rapid compatibility and adaptation when a scanning device generates a new form or a new combination of uses, an embodiment of the present application provides a scanning device control method, such as Figure 1 As shown, the method includes:

[0062] Step 101, when it is detected that a scanning device is connected and a main scanning device already exists, a current working mode is obtained, wherein the current working mode is set based on the working mode of the main scanning device.

[0063] When a scanning device is connected, the scanning software determines whether a main scanning device already exists. If so, it means that the current working mode of the scanning software has been set, and then the current working mode of the scanning software is obtained. The current working mode of the scanning software is set based on the working mode of the main scanning device. The main scanning device is generally the first scanning device connected or the scanning device manually enabled by the user.

[0064] The current working mode can be set by scanning methods, such as tracking scanning, structured light scanning, etc. It can also be set by the equipment group required by the scanning method, such as tracking scanning requires a scanner and at least one tracker.

[0065] Step 102: determining a first target policy based on the current working mode and the scanning device, wherein the first target policy is used to determine whether the scanning device is enabled.

[0066] The first target policy is determined based on the current working mode of the scanning software and the currently connected scanning device, that is, whether to enable the currently connected scanning device.

[0067] Step 103: Send corresponding control instructions to the scanning device based on the first target strategy.

[0068] After the first target strategy is determined, a corresponding control instruction is sent to the scanning device based on the first target strategy.

[0069] In this embodiment, the first target policy is used to determine whether to enable the currently connected scanning device, and the corresponding control instruction is an enable instruction or a disable instruction. In other implementations, the first target policy can also be used to determine whether to let the currently connected scanning device perform other operations, such as notifying the currently connected scanning device to disconnect, notifying the currently connected scanning device to change operating parameters, etc., and the corresponding control instruction can be a disconnection instruction, a modification instruction, etc.

[0070] In the above scheme, the current working mode of the scanning software is set based on the working mode of the main scanning device. When a new scanning device is connected, whether to enable the currently connected scanning device is determined based on the current working mode. Therefore, when the scanning device has a new form or a new combination of uses, there is no need to redevelop or modify the scanning software, and it can be quickly compatible and adapted. When using, the user only needs to set the main device and the working mode of the main device to quickly connect and enable multiple scanning devices required.

[0071] In an example of the present application, a scanning device control method is also provided, such as Figure 2 As shown, the determining of the first target strategy based on the current working mode and the scanning device includes:

[0072] Step 201: determine a target device range based on the current working mode.

[0073] The target device range can be set to device type, device parameters, executable operations, device identification, etc.

[0074] Step 202: Match the scanning device with the target device range.

[0075] Based on the target device range settings, obtain the corresponding data of the scanning device for matching.

[0076] Step 203: If the match is successful, determine that the first target policy is to enable the scanning device.

[0077] If the match is successful, it means that the currently connected scanning device is the scanning device required by the current working mode (ie, the scanning device required by the user), and the first target policy is determined to enable the currently connected scanning device.

[0078] In the above scheme, the range of the scanning device required by the user for the scanning task is determined based on the current working mode. If the currently connected scanning device meets the target scanning range, the scanning device is automatically enabled. The scanning device required by the user for the scanning task can be accurately adapted and automatically enabled without the need for manual activation and setting by the user, which significantly improves the user experience.

[0079] In an example of the present application, a scanning device control method is also provided, such as Figure 3 As shown, sending a corresponding control instruction to the scanning device based on the first target strategy includes:

[0080] Step 301: Send an activation instruction to the scanning device based on the first target policy.

[0081] When the first target policy determines that the currently connected scanning device needs to be enabled, an enabling instruction is sent to the scanning device based on the first target policy.

[0082] It should be noted that the enabling instruction may include other instructions for notifying the scanning device of services to be enabled or other operations to be performed.

[0083] Step 302: upon receiving the activation information sent by the scanning device, determining the scanning device as a secondary scanning device.

[0084] The scanning device receives the activation instruction and returns the activation information to the scanning software after activation, notifying the scanning software that it has been activated. When the scanning software receives the activation information sent by the scanning device, it determines the scanning device as a secondary scanning device. In subsequent scanning tasks, it needs to continuously obtain and process the data collected by the main scanning device and at least one secondary scanning device.

[0085] In an example of the present application, a scanning device control method is also provided, where the scanning device is matched with the target device range, including at least one of the following:

[0086] If the device type of the scanning device is the same as at least one target device type included in the target device range, it is determined that the matching is successful.

[0087] When the target device range is set with a device type, it can be set to include at least one of a structured light scanner, a laser scanner, an optical projection scanner, a photogrammetry system, a multi-view stereo scanning system, and a depth camera. For example, the target device range is set to a structured light scanner and a laser scanner.

[0088] If the operation that can be executed by the scanning device is the same as at least one target operation included in the target device range, it is determined that the matching is successful.

[0089] When the target device range is set with executable operations, it can be set to include at least one of scanning objects, data processing, geometric measurement, surface quality inspection, reverse engineering, 3D visualization, and augmented reality. For example, the target device range is set to a scanning device that can perform data processing and a scanning device that can perform geometric measurement.

[0090] For another example, the target device range is set to scanning devices that can perform both scanning of objects and reverse engineering.

[0091] If the device parameters of the scanning device belong to the device parameter range set by the target device range, it is determined that the match is successful.

[0092] When the target device range is set with device parameters, it can be set to include at least one of resolution, depth range, angle range, light source type, light source intensity, scanning speed, and accuracy. For example, the target device range is set to have a resolution of more than 2K, a depth range of between 1 meter and 2 meters, and an angle range of between 30 degrees and 60 degrees.

[0093] It should be noted that the target device range can be set based on at least one of the above multiple methods, and the number of scanning devices that meet the target device range can also be set.

[0094] For example, the target device range is set to include one structured light scanner that can simultaneously scan objects and perform geometric measurements with a resolution of more than 2K, and two optical projection scanners that can perform reverse engineering with a depth range of between 5 meters and 6 meters.

[0095] In the above scheme, the target device range can be set in various ways such as device type, device parameters, executable operations, etc., and the required number of scanning devices can be set, which significantly improves the flexibility of adapting the scanning devices. While expanding the range of matchable scanning devices, it also improves the matching accuracy and meets the needs of users to connect and automatically enable scanning devices when performing different scanning tasks.

[0096] In an example of the present application, a scanning device control method is also provided, such as Figure 4 As shown, the method also includes:

[0097] Step 401: Send an activation instruction to a non-master scanning device, where the activation instruction is determined based on a user's operation.

[0098] Non-main scanning devices include connected but unenabled scanning devices and auxiliary scanning devices (connected and enabled scanning devices other than the main scanning device).

[0099] When the user needs to perform another scanning task, and the current main scanning device cannot complete the scanning task, the user can manually operate the scanning software to enable the non-main scanning device that can complete the scanning task. When the scanning software detects the user's operation, it sends an enablement instruction to the non-main scanning device.

[0100] Likewise, the enabling instruction may include other instructions for notifying the scanning device of services that need to be enabled or other operations that need to be performed.

[0101] Step 402: upon receiving the activation information sent by the non-master scanning device, the non-master scanning device is changed to a master scanning device and the original master scanning device is changed to a non-master scanning device.

[0102] The non-master scanning device receives the activation instruction sent by the scanning software and returns the activation information to the scanning software after activation, notifying the scanning software that it has been activated. When the scanning software receives the activation information sent by the non-master scanning device, it changes the non-master scanning device to the master scanning device and changes the original master scanning device to the non-master scanning device (generally changed to a connected but unactivated device, and the original master scanning device can be deactivated by sending a deactivation instruction).

[0103] Step 403: Acquire the working mode of the main scanning device.

[0104] Get the working mode of the main scanning device. The working mode of the scanning device is generally a mode that requires the cooperation of multiple numbers and types of scanning devices to complete. For example, the working mode of a tracking scanner can be set to tracking scanning, multi-view photogrammetry, etc. Users can set the working mode of the scanning device to select the scanning task they need to perform.

[0105] Step 404: adjust the current working mode based on the working mode of the main scanning device.

[0106] The current working mode of the scanning software is adjusted based on the working mode of the new main scanning device.

[0107] Step 405: Determine a second target policy based on the adjusted current working mode, where the second target policy is used to determine whether the non-main scanning device is enabled.

[0108] A second target policy is determined based on the adjusted current working mode. The second target policy is for all non-main scanning devices and is used to determine whether each non-main scanning device needs to be enabled.

[0109] Step 406: Send corresponding control instructions to the non-master scanning device based on the second target strategy.

[0110] After the second target strategy is determined, a corresponding control instruction is sent to the scanning device based on the second target strategy.

[0111] In the above scheme, when the user completes a certain scanning task using the main scanning device and other secondary scanning devices and needs to perform other scanning tasks, the non-main scanning device that can complete the scanning task can be manually enabled. The non-main scanning device is changed to the main scanning device, and then the current working mode of the scanning software is adjusted based on the working mode of the new main scanning device, and then the second target strategy for each non-main scanning device is determined based on the current working mode, so that the user only needs to enable one main scanning device to achieve the management of enabling and disabling of all connected scanning devices, which significantly improves the efficiency of the user in performing scanning tasks.

[0112] In an example of the present application, a scanning device control method is also provided, such as Figure 5 As shown, the method also includes:

[0113] Step 501: When it is detected that a scanning device is connected and there is no main scanning device, an activation instruction is sent to the scanning device.

[0114] When a scanning device is connected, the scanning software determines whether a main scanning device already exists. If not, it means that the current working mode of the scanning software is not set, and an activation instruction is sent to the currently connected scanning device.

[0115] Likewise, the enabling instruction may include other instructions for notifying the scanning device of services that need to be enabled or other operations that need to be performed.

[0116] Step 502: upon receiving the activation information sent by the scanning device, determining the scanning device as a main scanning device.

[0117] The scanning device receives the activation instruction sent by the scanning software and returns activation information to the scanning software after activation, notifying the scanning software that it has been activated. When the scanning software receives the activation information sent by the scanning device, it determines the scanning device as the main scanning device.

[0118] Step 503: Acquire the working mode of the main scanning device.

[0119] Step 504: determine and set the current working mode based on the working mode of the main scanning device.

[0120] The first connected scanning device is determined as the main scanning device, and the current working mode of the scanning software is adjusted based on the working mode of the main scanning device.

[0121] In an example of the present application, a scanning device control method is also provided, the method comprising:

[0122] In this embodiment, if Fig. 6AAs shown, when the first scanning device A is connected to the PC with the scanning software installed, and there is no main scanning device at this time, an activation instruction is sent to the scanning device A. When the scanning device A is activated and returns activation information indicating successful activation, the scanning device A is determined as the main scanning device. The working mode of the scanning device A is obtained, and the working mode is determined as the current working mode of the scanning software.

[0123] like Figure 6B As shown, after the main scanning device exists, a new scanning device B is connected to the PC. Based on the current working mode of the scanning software, it is determined that two scanning devices of the device type of laser scanner are required, and the device type of scanning device B is a laser scanner, so the first target strategy is determined to be the need to enable scanning device B. An enablement instruction is sent to scanning device B. When scanning device B is enabled and returns an enablement information of successful enablement, scanning device B is determined as a secondary scanning device.

[0124] like Figure 6C As shown, two new scanning devices are connected to the PC, and the device type of the newly connected scanning device C is a structured light scanner, so the first target strategy is determined to be that the scanning device C does not need to be enabled. The device type of the other newly connected scanning device D is an optical projection scanner, so the first target strategy is determined to be that the scanning device D does not need to be enabled.

[0125] like Fig.6D As shown, the PC currently installed with scanning software has been connected to four scanning devices. One is a main scanning device, the device type is a laser scanner, and the status is connected and enabled scanning device A. One is a secondary scanning device, the device type is a laser scanner, and the status is connected and enabled scanning device B. One is a non-main scanning device, the device type is a structured light scanner, and the status is connected but not enabled scanning device C. One is an optical projection scanner, and the status is connected but not enabled scanning device D. When the user manually enables scanning device C, the device type is a structured light scanner, by operating the scanning software, the working mode of the manually enabled scanning device C is determined as the current working mode of the scanning software. Based on the current working mode of the scanning software, it is determined that a scanning device, the device type is an optical projection scanner, is required. At this time, there are three non-main scanning devices, namely scanning device A and scanning device B, the device types are laser scanners, and scanning device D, the device type is an optical projection scanner. Then, the second target strategy is determined to not enable scanning devices A and B, and enable scanning device D.

[0126] In order to implement the above scanning device control method, as Figure 7 As shown, an example of the present application provides a scanning device control device, including:

[0127] The communication module 10 is used to obtain the current working mode when detecting that the scanning device is connected and the main scanning device already exists, wherein the current working mode is set based on the working mode of the main scanning device;

[0128] A calculation module 20, configured to determine a first target strategy based on the current working mode and the scanning device, wherein the first target strategy is used to determine whether the scanning device is enabled;

[0129] The communication module 10 is further configured to send corresponding control instructions to the scanning device based on the first target strategy.

[0130] Among them, it also includes:

[0131] The communication module 10 is further used to send an activation instruction to the non-main scanning device, wherein the activation instruction is determined based on the user's operation;

[0132] The processing module 30 is used to change the non-main scanning device to the main scanning device and change the original main scanning device to the non-main scanning device when receiving the activation information sent by the non-main scanning device;

[0133] The communication module 10 is also used to obtain the working mode of the main scanning device;

[0134] The processing module 30 is further configured to adjust the current working mode based on the working mode of the main scanning device;

[0135] The calculation module 20 is further used to determine a second target strategy based on the adjusted current working mode, wherein the second target strategy is used to determine whether the non-main scanning device is enabled;

[0136] The communication module 10 is further configured to send corresponding control instructions to the non-main scanning device based on the target strategy.

[0137] Wherein, the calculation module 20 is further used to determine the target device range based on the current working mode;

[0138] The calculation module 20 is further used to match the scanning device with the target device range;

[0139] The processing module 30 is further configured to determine that the first target policy is to enable the scanning device if the matching is successful.

[0140] Wherein, the communication module 10 is further used to send an activation instruction to the scanning device based on the first target strategy;

[0141] The processing module 30 is further configured to determine the scanning device as a secondary scanning device when receiving the activation information sent by the scanning device.

[0142] Wherein, the calculation module 20 is further used to determine that the match is successful if the device type of the scanning device is the same as at least one target device type included in the target device range;

[0143] The calculation module 20 is further configured to determine that the match is successful if the operation that can be performed by the scanning device is the same as at least one target operation included in the target device range;

[0144] The calculation module 20 is further configured to determine that the match is successful if the device parameters of the scanning device belong to the device parameter range set in the target device range.

[0145] Wherein, the communication module 10 is also used to send an activation instruction to the scanning device when it is detected that the scanning device is connected and there is no main scanning device;

[0146] The processing module 30 is further configured to determine the scanning device as a main scanning device when receiving the activation information sent by the scanning device;

[0147] The communication module 10 is also used to obtain the working mode of the main scanning device;

[0148] The calculation module 20 is further configured to determine and set a current working mode based on the working mode of the main scanning device.

[0149] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0150] Figure 8 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0151] like Figure 8As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0152] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0153] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as the scanning device control method. For example, in some embodiments, the scanning device control method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the scanning device control method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the scanning device control method in any other appropriate manner (e.g., by means of firmware).

[0154] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), integrated systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0155] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0156] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0157] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0158] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0159] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0160] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0161] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0162] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A scanning device control method, the method include: When it is detected that the scanning device is connected and the main scanning device already exists, the current working mode is obtained, and the current working mode is set based on the working mode of the main scanning device; Determine a first target policy based on the current working mode and the scanning device, wherein the first target policy is used to determine whether the scanning device is enabled; Sending corresponding control instructions to the scanning device based on the first target strategy.

2. The method according to claim 1, wherein the first target strategy is determined based on the current working mode and the scanning device, include: Determine a target device range based on the current working mode; Matching the scanning device with the target device range; If the match is successful, it is determined that the first target policy is to enable the scanning device.

3. The method according to claim 2, wherein the corresponding control instruction is sent to the scanning device based on the first target strategy, include: sending an activation instruction to the scanning device based on the first target policy; When receiving the enabling information sent by the scanning device, the scanning device is determined as a secondary scanning device.

4. The method according to claim 2, matching the scanning device with the target device range, comprising at least one of the following: If the device type of the scanning device is the same as the type of at least one target device included in the target device range, determining that the matching is successful; If the operation that can be performed by the scanning device is the same as at least one target operation included in the target device range, determining that the matching is successful; If the device parameters of the scanning device belong to the device parameter range set by the target device range, it is determined that the match is successful.

5. The method according to claim 1, further comprising: include: Sending an enabling instruction to a non-master scanning device, wherein the enabling instruction is determined based on a user operation; When receiving the activation information sent by the non-main scanning device, changing the non-main scanning device to the main scanning device and changing the original main scanning device to the non-main scanning device; Acquire the working mode of the main scanning device; adjusting the current working mode based on the working mode of the main scanning device; Determine a second target policy based on the adjusted current working mode, wherein the second target policy is used to determine whether the non-main scanning device is enabled; Sending corresponding control instructions to the non-main scanning device based on the target strategy.

6. The method according to claim 1, further comprising: include: When it is detected that the scanning device is connected and there is no main scanning device, sending an activation instruction to the scanning device; Upon receiving the activation information sent by the scanning device, determining the scanning device as a main scanning device; Acquire the working mode of the main scanning device; The current operating mode is determined and set based on the operating mode of the main scanning device.

7. A scanning device control device, the device include: A communication module, configured to obtain a current working mode when detecting that a scanning device is connected and a main scanning device already exists, wherein the current working mode is set based on the working mode of the main scanning device; A calculation module, configured to determine a first target strategy based on the current working mode and the scanning device, wherein the first target strategy is used to determine whether the scanning device is enabled; The communication module is further configured to send corresponding control instructions to the scanning device based on the first target strategy.

8. The device according to claim 7, further comprising: include: The communication module is further used to send an enabling instruction to the non-main scanning device, wherein the enabling instruction is determined based on a user's operation; A processing module, configured to change the non-main scanning device into a main scanning device and change the original main scanning device into a non-main scanning device when receiving the activation information sent by the non-main scanning device; The communication module is further used to obtain the working mode of the main scanning device; The processing module is further used to adjust the current working mode based on the working mode of the main scanning device; The calculation module is further used to determine a second target strategy based on the adjusted current working mode, wherein the second target strategy is used to determine whether the non-main scanning device is enabled; The communication module is further configured to send corresponding control instructions to the non-main scanning device based on the target strategy.

9. An electronic device, include: Input-output systems and processors; When the input / output system detects that a scanning device is connected and a main scanning device already exists, the current working mode is obtained; and sending corresponding control instructions to the scanning device based on the first target strategy; The processor determines a first target strategy based on the current operating mode and the scanning device.

10. A computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program is used to obtain a current operating mode when detecting that a scanning device is connected and a main scanning device already exists; determine a first target strategy based on the current operating mode and the scanning device; and send corresponding control instructions to the scanning device based on the first target strategy.