Image scanning synchronous method and device, ATM and memory medium
A technology of image scanning and to-be-scanned, which is applied in the field of image scanning and can solve problems such as the inability to realize synchronous collection of image data information
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] figure 1 It is a flow chart of an image scanning synchronization method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of realizing synchronous collection of data information of a contact image sensor in an embedded control device. This method can be implemented by the embodiment of the present invention. The synchronization device provided for image scanning can be implemented by means of software and / or hardware, and can generally be integrated in the ATM. like figure 1 As shown, the method of this embodiment specifically includes:
[0029] S110, start the first thread.
[0030] Two threads are created when designing software, wherein the first thread is used to drive the motor in the embedded control device to run, and the second thread is used to drive the image processor in the embedded control device to scan images.
[0031] S120 , judging whether any driving cycle has been reached, if yes, execute S130 ; otherwise,...
Embodiment 2
[0041] On the basis of the above embodiments, before starting the first thread, the image scanning synchronization method further includes: pre-creating a counting semaphore, and setting the second thread to block on an invalid value of the counting semaphore .
[0042] Controlling the start of the second thread through the first thread specifically includes: setting the count semaphore to a valid value through the first thread, so as to control the start of the second thread.
[0043] Terminating the own thread through the second thread includes specifically: setting the count semaphore to an invalid value through the second thread, so as to end the own thread.
[0044] figure 2 It is a flow chart of an image scanning synchronization method provided in Embodiment 2 of the present invention, as shown in figure 2 As shown, the method of this embodiment specifically includes:
[0045] S210. Create a counting semaphore in advance, and set the second thread to block on an inv...
Embodiment 3
[0060] On the basis of the above embodiments, after starting the first thread, the method for synchronizing image scanning further includes:
[0061] Obtain an acceleration table through the first thread;
[0062] And during the acceleration movement of the motor through the first thread, the driving period is set according to the content in the accelerometer, and during the uniform movement of the motor, the driving period is set using a fixed constant.
[0063] image 3 It is a flow chart of an image scanning synchronization method provided in Embodiment 3 of the present invention, as shown in image 3 As shown, the method of this embodiment specifically includes:
[0064] S310. Create a counting semaphore in advance, and set the second thread to block on an invalid value of the counting semaphore.
[0065] S320. Start the first thread.
[0066] S330. Obtain an accelerometer through the first thread; and set the driving cycle according to the content in the accelerometer...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com