[go: up one dir, main page]

EP1473666A2 - Device for counting stacked objects - Google Patents

Device for counting stacked objects Download PDF

Info

Publication number
EP1473666A2
EP1473666A2 EP04291109A EP04291109A EP1473666A2 EP 1473666 A2 EP1473666 A2 EP 1473666A2 EP 04291109 A EP04291109 A EP 04291109A EP 04291109 A EP04291109 A EP 04291109A EP 1473666 A2 EP1473666 A2 EP 1473666A2
Authority
EP
European Patent Office
Prior art keywords
cis
counting
products
module
tray
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
EP04291109A
Other languages
German (de)
French (fr)
Other versions
EP1473666A3 (en
Inventor
Thomas Fumey
Benoít Berthe
Eric Auboussier
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Entrust Corp
Original Assignee
Datacard Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datacard Corp filed Critical Datacard Corp
Publication of EP1473666A2 publication Critical patent/EP1473666A2/en
Publication of EP1473666A3 publication Critical patent/EP1473666A3/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M9/00Counting of objects in a stack thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/08Design features of general application for actuating the drive
    • G06M1/10Design features of general application for actuating the drive by electric or magnetic means
    • G06M1/101Design features of general application for actuating the drive by electric or magnetic means by electro-optical means

Definitions

  • the present invention relates to a product counting device not very thick which can be stacked side by side.
  • Camera counting devices are known matrix requiring the implementation of a calibration procedure, thus resulting in a complex and expensive device.
  • the equipment includes an electronic module and drive means for the packaging to scroll between an X-ray source and a detector connected to a processing circuit.
  • the processing circuit can count the pulses corresponding to the passage of each module or allow a visualization of the image obtained during the complete scrolling of the packaging between the detector and the X-ray emitter. be used only for counting product with an element metallic or more generally an X-ray opaque part.
  • the X-ray source must be adjusted precisely so as to emit an radiation of reduced energy so as not to alter the opaque part.
  • European patent EP 676 718 a device for counting thin products stacked side by side in a tray wrapped in a translucent shrink film.
  • This device includes means of lighting the tray, mirrors to return the light beam reflected by the edge of the products towards a camera linear consisting of photosensitive elements, and means of transverse displacement of the tray so as to produce a plurality of scans, each scan being carried out transversely to the displacement from the tray.
  • Product counting is carried out by detection alternative of peaks and valleys.
  • One drawback of this device is that the lighting means, the mirrors and the camera are bulky.
  • a another drawback of this device is that the measurement time is long the fact that each scan is carried out over the entire length of the tray.
  • the object of the present invention is to overcome certain drawbacks of the prior art by proposing a device for counting thin products can be stacked side by side, which, on the one hand, is easy to use and take up little space, on the other hand, shortens the duration of measure, so as to increase the profitability of the metering device in term of number of products.
  • a device for counting thin products can be stacked side by side in a tray, characterized in that it includes at least one counting station consisting of at least one module CIS, the total length of which is at least equal to the length of the tray, and means for performing a plurality of scans in one direction transverse to the tray, each CIS module comprising at least means for longitudinal lighting of the products, and at least one CIS circuit, consisting of a plurality of photosensitive elements, connected to at least one printed circuit, the counting device also being able to include means for detecting the positioning of the tray, means movement of the tray or CIS modules in one direction perpendicular to the linear beam, means for memorizing the signals representative of the information of the light beam reflected by the products, and means of processing this information to determine the number of products.
  • the counting device comprises a means of transport and successive presentation of trays in front of the metering station (s).
  • each CIS module includes a lens to focus the beam reflected by the products on the (s) CIS circuit (s).
  • the counting includes means for calibrating CIS modules, allowing define a useful reading area for each CIS module, the useful reading of a CIS module starting at the place where the reading area ends useful from the previous CIS module, and in that the processing means allow the images read by the reading zones to be placed end to end useful of the different CIS modules.
  • the storage means are made up of at least as many memory bytes as elements useful photosensitive CIS modules.
  • each pixel made up of 256 levels of brightness provided by each photosensitive element, is combined with the adjacent pixels to determine the presence of the products and count these last.
  • each photosensitive element can represent a color combination for a color CIS, or a grayscale for a monochrome CIS.
  • each counting station allows the alternately detecting peaks and valleys, and in that the means processing allow counting of peaks and valleys constitutive of the memorized sinusoidal signal and representative of the beam linear of a scan, each vertex corresponding to either an edge of tray, or a product to count.
  • the processing means allow a pre-processing of the concatenated image, by averaging and / or by auto-correlation of the image.
  • the counting device allows to count thin products (1) and stacked side by side side by side, such as magnetic or smart cards, access badges, bundles of paper, envelopes, playing cards, tickets, etc ..., each batch of products being for example wrapped in a translucent film retractable not shown.
  • the products thick (1) are for example arranged in a tray (2).
  • the device counting includes at least one CIS (Contact Image Sensor) module (3).
  • a CIS module (3) as found on the market is made up, as shown in Figure 3, a light source (31) which sends a linear light beam on the products (1) to be counted, of a lens (32) allowing the beam reflected by the products to be focused on at least one CIS circuit (33), consisting of a plurality of photosensitive elements, and a printed circuit (34) to which the CIS circuit (33) is connected.
  • the circuit printed (34) is itself connected, according to the invention, to a data processing not shown, via a connector (34), comprising a memory, making it possible to store the data contained in the light beam reflected by the products (1) to be counted, and a microprocessor, allowing data processing to be carried out. All the elements making up the CIS module (3) are contained in a housing (30) provided with a window (36) permeable to light waves.
  • CIS module rather than the complex system used in the prior art makes it possible to reduce the dimensions of the counting device, while maintaining good resolution (of the order of 600 dpi or more). In addition, it reduces strongly the duration of the measurement (less than 2 seconds), because the module covers the entire length of the tray.
  • a single CIS module (3) or several CIS modules (3 1 , 3 2 , 3 3 ) can be arranged above the tray. If several CIS modules (3 1 , 3 2 , 3 3 ) are used, these modules can be arranged, either in series, or in such a way that the lighting and reading zones of the reflected beam of two adjacent CIS modules overlap. (4), as in Figures 1 and 2.
  • the total length of the linear beam must be at least equal to the length of the batch of products.
  • Each CIS circuit (33) includes, for example 10,000 elements photosensitive, to allow the counting of a batch of products (1) of, by example, maximum 1000 products.
  • Each photosensitive element of the CIS circuit (33) makes it possible to detect a light signal and to express this signal in the form of an electrical signal representative of at least 256 levels of brightness. This signal, for 256 brightness levels for example, is translated into 8-bit words, and each word is saved in the memory of the device according to the invention. So memory is made up, for example given, from a RAM of 10,000 words of a byte.
  • the photosensitive elements of the CIS circuits (33) can be color and represent a combination of red, green and blue.
  • the plane light beam (s) emitted by the light source (s) (31) of the CIS module (s) (3; 3 1 , 3 2 2 , 3 3 ) represents (s) a scan, longitudinal to the batch of products (1).
  • the counting device according to the invention makes it possible to carry out a plurality of scans of the batch of products (1) by displacement of the tray (2) or of the CIS module (s) (3) according to a movement of back and forth (5) transverse to it or these.
  • the back-and-forth movement is triggered by the depressing of a push button, touch screen, keyboard or any other equivalent means, not shown, arranged for example on the top of the cover of the counting device according to the invention, so as to make the tray move back and forth.
  • the counting device according to the invention is equipped with several CIS modules (3 1 , 3 2 , 3 3 ) whose reading zones of the reflected beam overlap (4), a calibration of the CIS modules must be carried out during the manufacture and / or maintenance of the counting device, so as to define the reading areas to be used for each CIS module.
  • the calibration process requires the installation of a strip black (n) instead of a batch of products.
  • White strips (b) are added on this black band (b) at the approximate location of the zones lighting overlapped by two adjacent CIS modules.
  • the module calibration process begins with the reading (510) of the beam reflected by the different CIS modules. Then the leftmost module (3 1 ) is defined (511) as the current module. The first pixel of the module in progress is then stored (512) as the start (d 1 ) of the reading area to be used for said CIS module (3 1 ), in a table of beginnings of reading areas.
  • the module calibration process continues with the search (513) for a transition position between the middle (m 1 , m 2 , m 3 ) of the module in progress and the end of the module in progress. This transition position corresponds to the middle of the white band (b). If the white band is not found, the counting device according to the invention leaves the calibration process by indicating (514) that a calibration error has occurred. If the white strip has been found, the transition position is stored (515) as the end (f 1 , f 2 ) of the reading area to be used for the current CIS module (3 1 , 3 2 ), in a table of end of reading areas.
  • the next module is then defined (516) as the current module.
  • the module calibration process continues with the search (517) for the transition position (middle of the white strip (b)) between the start of the current module and the middle (m 1 , m 2 , m 3 ) of the current module. If the white band is not found, the counting device according to the invention leaves the calibration process by indicating (518) that a calibration error has occurred. If the white strip has been found, the transition position is memorized (519) as the start (d 2 , d 3 ) of the reading zone to be used for the current CIS module (3 2 , 3 3 ), in the table of beginnings of reading areas.
  • the last pixel of said module is stored as the end (f 3 ) of the reading area for this said module (3 3 ), in the table of end of reading areas.
  • CIS module (3 1 , 3 2 ) corresponds to the start (d 2 , d 3 ) of the reading area to be used for the second, respectively third, CIS module (3 2 , 3 3 ).
  • Each of the search steps (513, 517) of the position of transition begins with a definition (610) of the start of the search area (from the beginning to the middle of the module or from the middle to the end of the module) like the current pixel. Then, if the value of the current pixel is greater than a value setpoint, the current pixel is defined (611) as the left edge of the white strip (b). Otherwise, the next pixel is defined (612) as a pixel in Classes. If this pixel corresponds to the end of the search area, the search device counting according to the invention leaves the search process (513, 517) of the transition position by indicating (613) that a search error has occurred produced. Otherwise, the value of this pixel is in turn examined in relation to the setpoint.
  • the counting device leaves the search process (513, 517) from the position of transition indicating (616) that a search error has occurred. Otherwise, the value of this pixel is in turn examined against the value setpoint.
  • the counting device leaves the search process (513, 517) from the position of transition indicating (618) that a search error has occurred.
  • the CIS modules (3; 3 1 , 3 2 , 3 3 ) carry out, during a forward movement, for example around fifty scans, carried out alternately from left to right and from right to left and during the return movement, for example another fifty alternating scans.
  • the light signal recorded by the photosensitive elements of the CIS circuits (33) consists of a sinusoidal signal whose vertices represent approximately the mediums of the products, the valleys represent the edges, and the distance separating two valleys corresponds to the thickness of a product to be counted.
  • the first vertex with coordinates ys0 corresponds in fact to a detection edge of the tray while the first vertex ys1 corresponds to the first product to be counted.
  • the microprocessor in the counting device controlled by a program using the algorithms described below, enables the processing of the data stored during the first scan, before validate the storage of a second scan, shown in Figure 7.
  • the program for reading stored scans and revenue recognition corresponds to the implementation of algorithms shown in Figures 9 to 15.
  • the counting process implemented by the counting device according to the invention, is shown in Figure 9. It begins when the push button is pressed by the user (910). The process then consists to carry out the processing (911) of a line, then to carry out a test (912) to find out if a certain number of lines, for example 100, has been scanned. If not, the result is stored (913), then a test (914) is performed to determine if the determined number of linear scans has been made. If yes, the test (914) is carried out directly, without storage (913) of the result. If the determined number of scans has not been performed, the program processes (911) the next line. Otherwise, the process continues with processing (915) results, then by posting (916) a report.
  • a test (917) is carried out to determine whether there is a need for a next cycle. In the negative, the test (917) is carried out again to determine whether there is reason to proceed to a next cycle. If so, that is, if the device according to the invention detects that the push button has been pressed again, the process starts again from step (910).
  • the processing step (911) of a line corresponds to the succession steps shown in Figure 10.
  • the processing step (911) of a line begins with a step reversing the scanning direction (9110) and continues with a test step (9111) on determining the meaning.
  • the line is memorized in step (9112) and in the case of a scan from right to left, the line is stored in step (9113).
  • steps (9112, 9113) are followed, if the counting device according to the invention is equipped with several CIS modules, a concatenation step (9114) images read by the different CIS modules.
  • the processing stage (911) of a line is continued, successively, by a search step (9115) the edges of the tray, by a pre-treatment step (9116) of the data, through a product analysis and accounting step (9117) (1) to count, and by a step of displaying the results (9118).
  • the image concatenation step (9114) is shown in the figure 11. It makes it possible to avoid overlapping of the images by taking counts the reading areas defined for each CIS module during the module calibration process.
  • the image concatenation step (9114) begins with a definition (91140) of the leftmost module as the current module, then with a definition (91141) of the first pixel of the image to be reconstituted as the current pixel of said image picture.
  • the start of the reading area (d 1 , d 2 , d 3 ) to be used is then defined (91142) as the current pixel of the module (3 1 , 3 2 , 3 3 ).
  • the current pixel of the module is defined (91143) as the current pixel of the image.
  • the current pixel of the image is incremented (91144).
  • a test (91145) is then carried out to determine whether the current pixel corresponds to the end of the reading area (f 1 , f 2 , f 3 ) to be used. If not, the module's pixel is incremented (91146), a step followed by the step of defining (91143) the current pixel of the module as the current pixel of the image. If so, a test (91147) is performed to determine if the module in progress is the last module. If not, the module is incremented (91148), step followed by the definition step (91142) of the start of the reading area (d 1 , d 2 , d 3 ) to be used as the module's current pixel (3 1 , 3 2 , 3 3 ). If not, the concatenation step ends.
  • the search step (9115) of the edges of the tray (2) is represented in FIG. 12. This search step is carried out twice, a first time to determine the leftmost edge of the tray, a second time to determine the rightmost edge of the tray.
  • the edge search step (9115) begins with a step of definition (91150) of the first (resp. last) pixel of the stored line as the current pixel of the image. This stage is followed by a stage of definition (91151) of the value of the current pixel as a reference value.
  • This information consists of an 8-bit word representative of one of the 256 brightness levels received by the photosensitive element of the CIS module corresponding to the memory word processed.
  • a stage of local vertex search (91152), which continues with a calculation step (91153) of the difference between the local level and the reference value memorized in step (91151).
  • the search step (9115) of the edges is continues with a test step (91154) to determine if this difference is greater than a setpoint. If so, an edge has been found and the position of the corresponding pixel is stored (91155).
  • the edge search step (9115) continues with the step of storage (91156) of the current pixel as a reference pixel. At this step succeeds test step (91157) to determine if it is the end (resp. from the beginning) of a line. If not, the research step (9115) of edges continues with the search step (91152) of local vertex. If so, the device memorizes (91158) that the edge has not been find.
  • the setpoint of step (91154) generally corresponds to the difference in brightness levels which separates on average a vertex of a valley and, as can be seen in the diagram in Figure 8, the edge search step (9115) makes it possible to detect as an edge the vertex ys0 then, as we will see later, when processing the valley, noticing that the difference in brightness levels d1 between the summit and the next valley is less than another setpoint and that the percentage of vertex variation is greater than a value determined, it considers that it is not the edge of the tray and detects the next vertex ys1 as being the effective edge of the tray.
  • the preprocessing step (9116) of the data, represented on the Figure 13 is not a compulsory step in the counting process according to the invention. It allows to average a determined number of lines for decrease background noise and / or auto-correlate image to enhance shape of the signal.
  • the pre-treatment step (9116) begins with a step (91160) initialization at zero of the index n, which is carried out at the start of the cycle (910, figure 9), and storage in each of the X memories buffer of the line being processed.
  • the pre-treatment stage (9116) continues with a test (91161) to determine, depending on the configuration of the counting device, if the use of averaging is appropriate. In if not, the pre-processing step (9116) continues with a test (91162) to determine, depending on the configuration of the counting device, whether the use of auto-correlation is appropriate.
  • the preprocessing step (9116) continues with the storage (911611) in the buffer memory n associated with the line in course, from the line being processed, then by incrementing (911612) of the buffer index.
  • the pre-treatment stage (9116) is continues with a test (911613) to determine if the memory index current buffer (n) exceeds the number of lines to average (X). In if so, the current buffer index is reset to zero (911614), then the current line is calculated (911615) in pixel averaging per pixel on all the lines (X) stored in the X buffer memories. If not, the pre-processing step (9116) continues directly by the calculation step (911615).
  • the next step is a test (91162) for determine, depending on the configuration of the counting device, whether the use an autocorrelation is appropriate. If not, the pre-treatment stage (9116) ends (91163). If yes, the pre-treatment stage (9116) continues with a definition (911621) of the left edge of the tray as a current pixel, then by the autocorrelation calculation (911622) of the current pixel. The current pixel is then incremented (911623), then a test (911624) is performed to determine if the pixel in course corresponds to the right edge of the tray. If so, the pre-treatment (9116) ends (91163). If not, the current pixel is calculated (911622) using the autocorrelation formula in Figure 13.
  • the product analysis and accounting step (9117) (1) between the edges is shown in Figure 14. It begins with a step of reading (91170) of a pixel to continue with a test step (91171) on the type of sequence. This test is carried out by determining whether the difference between the pixel being processed and the previous pixel is positive or negative and, if it is positive, starts the process of "local vertex” processing and if it is negative triggers the "local valley” treatment process.
  • the "local summit” treatment process begins with a step of measure (91172) of the distance (dss) between vertices and continues with a test step (911721) to determine if this distance (dss) is greater at a minimum distance. If not, the processing process "local vertex” continues with a processing step of the next pixel and by the test (91171) on the type of sequence. If so, the process "local vertex” processing continues with a step of calculating (911722) the percentage of variation of the vertices: (ys2 - ys1) x 100 / ys1. If this variation is greater than a set value, the treatment process "local summit” continues with a test step (911723) to determine if the variation is negative.
  • the treatment process "local vertex" continues with the reading step (91170) of a pixel. If the variation is positive, the "local summit” treatment process continues by a test step (911724) consisting in reading the content of the counter of the number of products and to determine if the content of this counter is less to 3. If the answer is negative, the "local summit” processing process ends. continues with the reading step (91170) of a pixel. If the answer is affirmative, the program continues with a registration step (911725) of the edge, considering that the treated vertex is actually the true edge of the tray.
  • the "local top” processing process detected ys0 and that then, by detecting ys1, he finds that the variation for ys1 is greater than the set value and then, checking that the number of products is less than 3, it considers that ys1 is the real edge of the set of products to be counted. If the variation is less than the setpoint, the "local top” processing process validates (911726) the top in incrementing a counter which counts the vertices.
  • This validation step (911726) of a vertex is followed by a jump to the local valley sequencer by returning the analysis and accounting (9117) of the products before the test step (91171) on the type sequence, to process a local valley according to the processing process "local valley” below.
  • This "local valley” treatment always begins with the test (91171) on the type of sequence and then continues with a measurement step (91173) of the summit-valley distance (dsv) and the valley-valley distance (DOV). This step is followed by a test step (911731) to determine if the two distances (dsv, dvv) are correct with respect to values of reference. If not, the "local valley” treatment process is continues with the processing of the next pixel and the test step (91171) on the sequence type. If so, if the distances are correct the "local valley” treatment process continues with a step of validation (911732) of the valley, which consists in incrementing a counter of valley. This step is followed by a jump to the local vertex sequencer in returning the analysis and accounting step (9117) of the products before the test step (91171) on the type of sequence, to process a local vertex according to the "local summit” processing process.
  • the counting method according to the invention comprises a processing step (915, FIG. 9) of the results, after the microprocessor of the counting device according to the invention has determined that it was an end-of-cycle step (914, Figure 9).
  • the stage of processing (915) of the results is represented in FIG. 12. It starts with sorting (9150) the results in ascending order, and continues by a construction (9151) of a histogram of the results and a search (9152) of the largest occurrence between the results.
  • the microprocessor So out of the hundred scans, the microprocessor will be able to determine, for example, that the number 950 comes up more often than the number 939, 940 or 945.
  • the number 950 is then stored, and the processing step (915) of the results is continues with a test (9153) to determine whether the success rate of this number of greatest occurrence is less than a set value. Yes, for example, the value 950 returns more than 7 times on 8 counts, the microprocessor considers that the setpoint has been reached and the step of processing (915) of the results continues with a test step (9154) for determine if there has been good edge detection. Otherwise, the counting according to the invention signals (91530) a bad counting and displays (9159) "no product found".
  • This test step (9154) on detection of the edges consists in reading a semaphore which will have been positioned during the steps (91155, figure 12 or 911725, figure 14), indicating that the edges have actually been detected.
  • the counting according to the invention signals (91540) poor detection of edges and poster (9159) "no product found”. If so, the processing (915) of the results is continued by a test step (9155) on the detection of the saturation of photosensitive elements of CIS circuits. If so, the counting device according to the invention signals (91550) there is too much light and displays (9159) "no product found”.
  • the processing step (915) of the results continues with a step test (9156) to determine if the information read had a good clarity.
  • the counting device signals (91560) a contrast defect and displays (9159) "no product found”. In if so, the processing step (915) of the results continues with a test step (9157) on the number of products to determine if this number is greater than zero. If not, the counting device according to the invention indicates (91570) a bad reading and displays (9159) "no product found ". If so, the processing step (915) of the results is ends with a display step (9158) of the number of products and the rate of success.
  • FIG. 7 represents another variant of the displacement device mechanical trays (2) under the reading beam so that perform a plurality of transverse scans with respect to the direction of displacement of the trays (2).
  • these trays (2) are mounted on a cleat belt (6), itself tensioned between two drive pulleys, at least one of which is rotated by a electric motor powered sequentially after processing 100 scan lines or the desired number of scan lines for achieve a sufficient success rate.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Controlling Sheets Or Webs (AREA)
  • Geophysics And Detection Of Objects (AREA)
  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

The device has a counting station with contact image sensor (CIS) modules (3 1-3 3), each module having a longitudinal lighting unit (31). A CIS circuit (33) is connected to a printed circuit (34). A displacement unit moves a container or the modules in a direction perpendicular to a linear light beam. A memory stores signals representative of information of light beam reflected by the products. The device has a microprocessor for processing the information for determining a number of products.

Description

La présente invention concerne un dispositif de comptage de produits peu épais pouvant être empilés côte à côte.The present invention relates to a product counting device not very thick which can be stacked side by side.

Il est connu des dispositifs de comptage de produits par caméra matricielle nécessitant la mise en place d'une procédure d'étalonnage, aboutissant ainsi à un appareil complexe et onéreux.Camera counting devices are known matrix requiring the implementation of a calibration procedure, thus resulting in a complex and expensive device.

Il est connu par le brevet FR 2 680 027 un appareil de comptage de cartes à mémoire contenues dans un emballage opaque. L'appareillage comprend un module électronique et des moyens d'entraínement de l'emballage pour le faire défiler entre une source de rayons X et un détecteur relié à un circuit de traitement. L'emballage, ainsi que les corps de carte, étant transparents aux rayons X, le détecteur reçoit un faisceau modifié par l'ombre des modules électroniques des cartes. Le circuit de traitement peut décompter les impulsions correspondant au passage de chaque module ou permettre une visualisation de l'image obtenue lors du défilement complet de l'emballage entre le détecteur et l'émetteur de rayons X. Ce dispositif ne peut être utilisé que pour le comptage de produit présentant un élément métallique ou plus généralement une partie opaque aux rayons X. De plus, la source de rayons X doit être réglée précisément de manière à émettre un rayonnement d'énergie réduite pour ne pas altérer la partie opaque.It is known from patent FR 2 680 027 an apparatus for counting memory cards contained in an opaque package. The equipment includes an electronic module and drive means for the packaging to scroll between an X-ray source and a detector connected to a processing circuit. The packaging, as well as the card bodies, being transparent to X-rays, the detector receives a beam modified by the shadow of the electronic modules of the cards. The processing circuit can count the pulses corresponding to the passage of each module or allow a visualization of the image obtained during the complete scrolling of the packaging between the detector and the X-ray emitter. be used only for counting product with an element metallic or more generally an X-ray opaque part. In addition, the X-ray source must be adjusted precisely so as to emit an radiation of reduced energy so as not to alter the opaque part.

Il est connu par le brevet européen EP 676 718 un dispositif de comptage de produits peu épais et empilés côte à côte dans une barquette emballée sous un film rétractable translucide. Ce dispositif comporte des moyens d'éclairage de la barquette, des miroirs permettant de renvoyer le faisceau lumineux réfléchi par la tranche des produits vers une caméra linéaire constituée d'éléments photosensibles, et des moyens de déplacement transversal de la barquette de façon à réaliser une pluralité de balayages, chaque balayage étant réalisé transversalement au déplacement de la barquette. Le comptage des produits est réalisé par la détection alternative des sommets et des vallées. Un inconvénient de ce dispositif est que les moyens d'éclairage, les miroirs et la caméra sont encombrants. Un autre inconvénient de ce dispositif est que la durée de mesure est importante du fait que chaque balayage est réalisé sur toute la longueur de la barquette.It is known from European patent EP 676 718 a device for counting thin products stacked side by side in a tray wrapped in a translucent shrink film. This device includes means of lighting the tray, mirrors to return the light beam reflected by the edge of the products towards a camera linear consisting of photosensitive elements, and means of transverse displacement of the tray so as to produce a plurality of scans, each scan being carried out transversely to the displacement from the tray. Product counting is carried out by detection alternative of peaks and valleys. One drawback of this device is that the lighting means, the mirrors and the camera are bulky. A another drawback of this device is that the measurement time is long the fact that each scan is carried out over the entire length of the tray.

La présente invention a pour but de pallier certains inconvénients de l'art antérieur en proposant un dispositif de comptage de produits peu épais pouvant être empilés côte à côte, qui, d'une part, soit simple d'utilisation et prenne peu de place, d'autre part, permette de raccourcir la durée de mesure, de façon à augmenter la rentabilité du dispositif de comptage en terme de nombre de produits.The object of the present invention is to overcome certain drawbacks of the prior art by proposing a device for counting thin products can be stacked side by side, which, on the one hand, is easy to use and take up little space, on the other hand, shortens the duration of measure, so as to increase the profitability of the metering device in term of number of products.

Ce but est atteint par un dispositif de comptage de produits peu épais pouvant être empilés côte à côte dans une barquette, caractérisé en ce qu'il comprend au moins un poste de comptage constitué d'au moins un module CIS, dont la longueur totale est au moins égale à la longueur de la barquette, et des moyens d'effectuer une pluralité de balayages dans une direction transversale à la barquette, chaque module CIS comportant au moins des moyens d'éclairage longitudinal des produits, et au moins un circuit CIS, constitué d'une pluralité d'éléments photosensibles, connecté à au moins un circuit imprimé, le dispositif de comptage pouvant également comprendre des moyens de détection de la mise en place de la barquette, des moyens de déplacement de la barquette ou des modules CIS dans une direction perpendiculaire au faisceau linéaire, des moyens de mémorisation des signaux représentatifs des informations du faisceau lumineux réfléchi par les produits, et des moyens de traitement de ces informations pour déterminer le nombre de produits.This goal is achieved by a device for counting thin products can be stacked side by side in a tray, characterized in that it includes at least one counting station consisting of at least one module CIS, the total length of which is at least equal to the length of the tray, and means for performing a plurality of scans in one direction transverse to the tray, each CIS module comprising at least means for longitudinal lighting of the products, and at least one CIS circuit, consisting of a plurality of photosensitive elements, connected to at least one printed circuit, the counting device also being able to include means for detecting the positioning of the tray, means movement of the tray or CIS modules in one direction perpendicular to the linear beam, means for memorizing the signals representative of the information of the light beam reflected by the products, and means of processing this information to determine the number of products.

Selon une autre particularité, le dispositif de comptage comprend un moyen de transport et de présentation successive de barquettes devant le(s) poste(s) de comptage.According to another particular feature, the counting device comprises a means of transport and successive presentation of trays in front of the metering station (s).

Selon une autre particularité, chaque module CIS comporte une lentille permettant de focaliser le faisceau réfléchi par les produits sur le(s) circuit(s) CIS.According to another particularity, each CIS module includes a lens to focus the beam reflected by the products on the (s) CIS circuit (s).

Selon une autre particularité, les faisceaux d'éclairage des modules CIS adjacents se chevauchant au plus partiellement, le dispositif de comptage comprend des moyens d'étalonnage des modules CIS, permettant de définir une zone de lecture utile pour chaque module CIS, la zone de lecture utile d'un module CIS débutant à l'endroit où finit la zone de lecture utile du module CIS précédent, et en ce que les moyens de traitement permettent de mettre bout à bout les images lues par les zones de lecture utiles des différents modules CIS.According to another particularity, the light beams of the modules Most partially overlapping adjacent CISs, the counting includes means for calibrating CIS modules, allowing define a useful reading area for each CIS module, the useful reading of a CIS module starting at the place where the reading area ends useful from the previous CIS module, and in that the processing means allow the images read by the reading zones to be placed end to end useful of the different CIS modules.

Selon une autre particularité, les moyens de mémorisation sont constitués par au moins autant d'octets mémoire que d'éléments photosensibles utiles des modules CIS.According to another particular feature, the storage means are made up of at least as many memory bytes as elements useful photosensitive CIS modules.

Selon une autre particularité, chaque pixel, constitué de 256 niveaux de luminosité fournis par chaque élément photosensible, est combiné avec les pixels adjacents pour déterminer la présence des produits et compter ces derniers.According to another particularity, each pixel, made up of 256 levels of brightness provided by each photosensitive element, is combined with the adjacent pixels to determine the presence of the products and count these last.

Selon une autre particularité, chaque élément photosensible peut représenter une combinaison de couleurs pour un CIS couleur, ou bien un niveau de gris pour un CIS monochrome.According to another particular feature, each photosensitive element can represent a color combination for a color CIS, or a grayscale for a monochrome CIS.

Selon une autre particularité, chaque poste de comptage permet la détection alternativement de sommets et de vallées, et en ce que les moyens de traitement permettent le comptage des sommets et des vallées constitutives du signal sinusoïdal mémorisé et représentatif du faisceau linéaire d'un balayage, chaque sommet correspondant, soit à un bord de barquette, soit à un produit à compter.According to another particular feature, each counting station allows the alternately detecting peaks and valleys, and in that the means processing allow counting of peaks and valleys constitutive of the memorized sinusoidal signal and representative of the beam linear of a scan, each vertex corresponding to either an edge of tray, or a product to count.

Selon une autre particularité, les moyens de traitement permettent un pré-traitement de l'image concaténée, par moyennage et/ou par auto-corrélation de l'image.According to another particularity, the processing means allow a pre-processing of the concatenated image, by averaging and / or by auto-correlation of the image.

D'autres particularités et avantages de la présente invention apparaítront plus clairement à la lecture de la description ci-après, faite en référence aux dessins annexés, dans lesquels :

  • les figures 1 et 2 représentent respectivement une vue en perspective et une vue de côté du principe du dispositif de comptage selon l'invention,
  • la figure 3 représente une vue en coupe transversale d'un module CIS,
  • la figure 4 représente un schéma de principe du processus d'étalonnage des modules,
  • la figure 5 représente l'organigramme représentatif du processus d'étalonnage des modules,
  • la figure 6 représente l'organigramme représentatif du processus de recherche de la position de transition,
  • la figure 7 représente une vue schématique de côté d'un second mode de réalisation du principe du dispositif de comptage selon l'invention,
  • la figure 8 représente la forme du signal, en sortie du module CIS, mémorisé sous forme d'octets dans la mémoire du dispositif selon l'invention,
  • la figure 9 représente l'organigramme représentatif du déroulement de l'opération de comptage,
  • la figure 10 représente l'organigramme représentatif du traitement d'une ligne,
  • la figure 11 représente l'organigramme représentatif du processus de concaténation de l'image,
  • la figure 12 représente l'organigramme représentatif du processus de localisation des bords de la barquette contenant les produits,
  • la figure 13 représente l'organigramme représentatif du processus de pré-traitement,
  • la figure 14 représente l'organigramme représentatif du processus d'analyse et de comptabilisation des produits,
  • la figure 15 représente l'organigramme représentatif du processus de traitement des résultats.
Other features and advantages of the present invention will appear more clearly on reading the description below, made with reference to the accompanying drawings, in which:
  • FIGS. 1 and 2 respectively represent a perspective view and a side view of the principle of the counting device according to the invention,
  • FIG. 3 represents a cross-sectional view of a CIS module,
  • FIG. 4 represents a block diagram of the module calibration process,
  • FIG. 5 represents the representative flowchart of the module calibration process,
  • FIG. 6 represents the representative flowchart of the process of finding the transition position,
  • FIG. 7 represents a schematic side view of a second embodiment of the principle of the counting device according to the invention,
  • FIG. 8 represents the shape of the signal, at the output of the CIS module, stored in the form of bytes in the memory of the device according to the invention,
  • FIG. 9 represents the flowchart representative of the progress of the counting operation,
  • FIG. 10 represents the flowchart representative of the processing of a line,
  • FIG. 11 represents the representative flowchart of the image concatenation process,
  • FIG. 12 represents the representative flowchart of the process for locating the edges of the tray containing the products,
  • FIG. 13 represents the representative flowchart of the preprocessing process,
  • FIG. 14 represents the representative organizational chart of the product analysis and accounting process,
  • FIG. 15 represents the representative flowchart of the process for processing the results.

Le dispositif de comptage selon l'invention, visible en particulier sur les figures 1 et 2, permet de compter des produits peu épais (1) et empilés côte à côte, tels que des cartes magnétiques ou à puce, des badges d'accès, des liasses de papier, des enveloppes, des cartes à jouer, des tickets, etc..., chaque lot de produits étant par exemple emballé dans un film translucide rétractable non représenté. Pour faciliter leur maniement, les produits peu épais (1) sont par exemple disposés dans une barquette (2). Le dispositif de comptage comprend au moins un module CIS (Contact Image Sensor) (3). The counting device according to the invention, visible in particular on the Figures 1 and 2, allows to count thin products (1) and stacked side by side side by side, such as magnetic or smart cards, access badges, bundles of paper, envelopes, playing cards, tickets, etc ..., each batch of products being for example wrapped in a translucent film retractable not shown. To facilitate their handling, the products thick (1) are for example arranged in a tray (2). The device counting includes at least one CIS (Contact Image Sensor) module (3).

Un module CIS (3) tel qu'on le trouve sur le marché est constitué, comme le montre la figure 3, d'une source lumineuse (31) qui envoie un faisceau lumineux linéaire sur les produits (1) à compter, d'une lentille (32) permettant de focaliser le faisceau réfléchi par les produits sur au moins un circuit CIS (33), constitué d'une pluralité d'éléments photosensibles, et d'un circuit imprimé (34) sur lequel est connecté le circuit CIS (33). Le circuit imprimé (34) est lui-même connecté, selon l'invention, à un dispositif de traitement des données non représenté, par l'intermédiaire d'un connecteur (34), comprenant une mémoire, permettant de stocker les données contenues dans le faisceau lumineux réfléchi par les produits (1) à compter, et un microprocesseur, permettant de réaliser le traitement des données. L'ensemble des éléments constituant le module CIS (3) est contenu dans un boítier (30) pourvu d'une fenêtre (36) perméable aux ondes lumineuses.A CIS module (3) as found on the market is made up, as shown in Figure 3, a light source (31) which sends a linear light beam on the products (1) to be counted, of a lens (32) allowing the beam reflected by the products to be focused on at least one CIS circuit (33), consisting of a plurality of photosensitive elements, and a printed circuit (34) to which the CIS circuit (33) is connected. The circuit printed (34) is itself connected, according to the invention, to a data processing not shown, via a connector (34), comprising a memory, making it possible to store the data contained in the light beam reflected by the products (1) to be counted, and a microprocessor, allowing data processing to be carried out. All the elements making up the CIS module (3) are contained in a housing (30) provided with a window (36) permeable to light waves.

L'utilisation d'un ou plusieurs module(s) CIS plutôt que le complexe système utilisé dans l'art antérieur permet de réduire énormément les dimensions du dispositif de comptage, tout en conservant une bonne résolution (de l'ordre de 600 dpi ou plus). De plus, cela permet de diminuer fortement la durée de la mesure (inférieure à 2 secondes), du fait que le module couvre toute la longueur de la barquette.The use of one or more CIS module (s) rather than the complex system used in the prior art makes it possible to reduce the dimensions of the counting device, while maintaining good resolution (of the order of 600 dpi or more). In addition, it reduces strongly the duration of the measurement (less than 2 seconds), because the module covers the entire length of the tray.

Selon l'invention, et en fonction de la longueur du lot de produits à compter (1), un seul module CIS (3) ou plusieurs modules CIS (31, 32, 33) peuvent être disposés au-dessus de la barquette. Si plusieurs modules CIS (31, 32, 33) sont utilisés, ces modules peuvent être disposés, soit en série, soit de telle façon que les zones d'éclairage et de lecture du faisceau réfléchi de deux modules CIS adjacents se chevauchent (4), comme sur les figures 1 et 2. La longueur totale du faisceau linéaire doit être au moins égale à la longueur du lot de produits.According to the invention, and depending on the length of the batch of products to be counted (1), a single CIS module (3) or several CIS modules (3 1 , 3 2 , 3 3 ) can be arranged above the tray. If several CIS modules (3 1 , 3 2 , 3 3 ) are used, these modules can be arranged, either in series, or in such a way that the lighting and reading zones of the reflected beam of two adjacent CIS modules overlap. (4), as in Figures 1 and 2. The total length of the linear beam must be at least equal to the length of the batch of products.

Chaque circuit CIS (33) comprend, à titre d'exemple 10.000 éléments photosensibles, pour permettre le comptage d'un lot de produits (1) de, par exemple, au maximum 1000 produits. Chaque élément photosensible du circuit CIS (33) permet de détecter un signal lumineux et d'exprimer ce signal sous forme d'un signal électrique représentatif d'au moins 256 niveaux de luminosité. Ce signal, pour 256 niveaux de luminosité par exemple, est traduit en mots de 8 bits, et chaque mot est enregistré dans la mémoire du dispositif selon l'invention. Ainsi, la mémoire est constituée, pour l'exemple donné, d'une mémoire vive de 10.000 mots d'un octet. Dans une variante de réalisation, les éléments photosensibles des circuits CIS (33) peuvent être couleur et représenter une combinaison du rouge, du vert et du bleu.Each CIS circuit (33) includes, for example 10,000 elements photosensitive, to allow the counting of a batch of products (1) of, by example, maximum 1000 products. Each photosensitive element of the CIS circuit (33) makes it possible to detect a light signal and to express this signal in the form of an electrical signal representative of at least 256 levels of brightness. This signal, for 256 brightness levels for example, is translated into 8-bit words, and each word is saved in the memory of the device according to the invention. So memory is made up, for example given, from a RAM of 10,000 words of a byte. In a variant of embodiment, the photosensitive elements of the CIS circuits (33) can be color and represent a combination of red, green and blue.

Le(s) faisceau(x) lumineux plan(s) émis par la (les) source(s) lumineuse(s) (31) du (des) module(s) CIS (3 ; 31, 32, 33) représente(nt) un balayage, longitudinal au lot de produits (1). Le dispositif de comptage selon l'invention permet d'effectuer une pluralité de balayages du lot de produits (1) par déplacement de la barquette (2) ou du (des) module(s) CIS (3) selon un mouvement de va-et-vient (5) transversal à celle-ci ou ceux-ci. Le mouvement de va-et-vient est déclenché par l'enfoncement d'un bouton poussoir, écran tactile, clavier ou tout autre moyen équivalent, non représenté, disposé par exemple sur le dessus du capot du dispositif de comptage selon l'invention, de façon à faire effectuer à la barquette un déplacement aller et retour.The plane light beam (s) emitted by the light source (s) (31) of the CIS module (s) (3; 3 1 , 3 2 2 , 3 3 ) represents (s) a scan, longitudinal to the batch of products (1). The counting device according to the invention makes it possible to carry out a plurality of scans of the batch of products (1) by displacement of the tray (2) or of the CIS module (s) (3) according to a movement of back and forth (5) transverse to it or these. The back-and-forth movement is triggered by the depressing of a push button, touch screen, keyboard or any other equivalent means, not shown, arranged for example on the top of the cover of the counting device according to the invention, so as to make the tray move back and forth.

Lorsque le dispositif de comptage selon l'invention est équipé de plusieurs modules CIS (31, 32, 33) dont les zones de lecture du faisceau réfléchi se chevauchent (4), un étalonnage des modules CIS doit être réalisé lors de la fabrication et/ou de la maintenance du dispositif de comptage, de façon à définir les zones de lecture à utiliser pour chaque module CIS.When the counting device according to the invention is equipped with several CIS modules (3 1 , 3 2 , 3 3 ) whose reading zones of the reflected beam overlap (4), a calibration of the CIS modules must be carried out during the manufacture and / or maintenance of the counting device, so as to define the reading areas to be used for each CIS module.

Le principe du processus d'étalonnage est schématisé sur la figure 4. Les différentes étapes du processus d'étalonnage sont représentées sous la forme d'un organigramme sur la figure 5.The principle of the calibration process is shown schematically in Figure 4. The different stages of the calibration process are represented under the form of a flowchart in FIG. 5.

Le processus d'étalonnage nécessite la mise en place d'une bande noire (n) à la place d'un lot de produits. Des bandelettes blanches (b) sont ajoutées sur cette bande noire (b) à l'endroit approximatif des zones d'éclairage chevauchées par deux modules CIS adjacents.The calibration process requires the installation of a strip black (n) instead of a batch of products. White strips (b) are added on this black band (b) at the approximate location of the zones lighting overlapped by two adjacent CIS modules.

Le processus d'étalonnage des modules commence par la lecture (510) du faisceau réfléchi par les différents modules CIS. Puis le module le plus à gauche (31) est défini (511) comme le module en cours. Le premier pixel du module en cours est alors mémorisé (512) comme début (d1) de la zone de lecture à utiliser pour ledit module CIS (31), dans un tableau de débuts de zones de lecture.The module calibration process begins with the reading (510) of the beam reflected by the different CIS modules. Then the leftmost module (3 1 ) is defined (511) as the current module. The first pixel of the module in progress is then stored (512) as the start (d 1 ) of the reading area to be used for said CIS module (3 1 ), in a table of beginnings of reading areas.

Le processus d'étalonnage des modules se poursuit par la recherche (513) d'une position de transition entre le milieu (m1, m2, m3) du module en cours et la fin du module en cours. Cette position de transition correspond au milieu de la bande blanche (b). Si la bande blanche n'est pas trouvée, le dispositif de comptage selon l'invention quitte le processus d'étalonnage en indiquant (514) qu'une erreur d'étalonnage s'est produite. Si la bande blanche a été trouvée, la position de transition est mémorisée (515) comme fin (f1, f2) de zone de lecture à utiliser pour le module CIS (31, 32) en cours, dans un tableau de fins de zones de lecture.The module calibration process continues with the search (513) for a transition position between the middle (m 1 , m 2 , m 3 ) of the module in progress and the end of the module in progress. This transition position corresponds to the middle of the white band (b). If the white band is not found, the counting device according to the invention leaves the calibration process by indicating (514) that a calibration error has occurred. If the white strip has been found, the transition position is stored (515) as the end (f 1 , f 2 ) of the reading area to be used for the current CIS module (3 1 , 3 2 ), in a table of end of reading areas.

Le module suivant est alors défini (516) comme le module en cours. Le processus d'étalonnage des modules se poursuit par la recherche (517) de la position de transition (milieu de la bande blanche (b)) entre le début du module en cours et le milieu (m1, m2, m3) du module en cours. Si la bande blanche n'est pas trouvée, le dispositif de comptage selon l'invention quitte le processus d'étalonnage en indiquant (518) qu'une erreur d'étalonnage s'est produite. Si la bande blanche a été trouvée, la position de transition est mémorisée (519) comme début (d2, d3) de zone de lecture à utiliser pour le module CIS (32, 33) en cours, dans le tableau de débuts de zones de lecture.The next module is then defined (516) as the current module. The module calibration process continues with the search (517) for the transition position (middle of the white strip (b)) between the start of the current module and the middle (m 1 , m 2 , m 3 ) of the current module. If the white band is not found, the counting device according to the invention leaves the calibration process by indicating (518) that a calibration error has occurred. If the white strip has been found, the transition position is memorized (519) as the start (d 2 , d 3 ) of the reading zone to be used for the current CIS module (3 2 , 3 3 ), in the table of beginnings of reading areas.

Si le module en cours est le dernier module, le dernier pixel dudit module est mémorisé comme fin (f3) de zone de lecture pour ce dit module (33), dans le tableau de fins de zones de lecture.If the module in progress is the last module, the last pixel of said module is stored as the end (f 3 ) of the reading area for this said module (3 3 ), in the table of end of reading areas.

Comme le montre la figure 4, la fin (f1, f2) de la zone de lecture à utiliser pour le premier, respectivement deuxième, module CIS (31, 32) correspond au début (d2, d3) de la zone de lecture à utiliser pour le deuxième, respectivement troisième, module CIS (32, 33).As shown in Figure 4, the end (f 1 , f 2 ) of the reading area to be used for the first, respectively second, CIS module (3 1 , 3 2 ) corresponds to the start (d 2 , d 3 ) of the reading area to be used for the second, respectively third, CIS module (3 2 , 3 3 ).

Les étapes de recherche (513, 517) de la position de transition, dans le processus d'étalonnage des modules, sont représentées sur la figure 6.The stages of research (513, 517) of the transition position, in the module calibration process, are shown in Figure 6.

Chacune des étapes de recherche (513, 517) de la position de transition débute par une définition (610) du début de la zone de recherche (du début au milieu du module ou du milieu à la fin du module) comme le pixel en cours. Puis, si la valeur du pixel en cours est supérieure à une valeur consigne, le pixel en cours est défini (611) comme étant le bord gauche de la bande blanche (b). Sinon, le pixel suivant est défini (612) comme pixel en cours. Si ce pixel correspond à la fin de la zone de recherche, le dispositif de comptage selon l'invention quitte le processus de recherche (513, 517) de la position de transition en indiquant (613) qu'une erreur de recherche s'est produite. Sinon, la valeur de ce pixel est à son tour examinée par rapport à la valeur consigne.Each of the search steps (513, 517) of the position of transition begins with a definition (610) of the start of the search area (from the beginning to the middle of the module or from the middle to the end of the module) like the current pixel. Then, if the value of the current pixel is greater than a value setpoint, the current pixel is defined (611) as the left edge of the white strip (b). Otherwise, the next pixel is defined (612) as a pixel in Classes. If this pixel corresponds to the end of the search area, the search device counting according to the invention leaves the search process (513, 517) of the transition position by indicating (613) that a search error has occurred produced. Otherwise, the value of this pixel is in turn examined in relation to the setpoint.

Une fois que le bord gauche de la bande blanche (b) a été trouvé, si la valeur du pixel en cours est inférieure à une valeur consigne, le pixel en cours est défini (614) comme étant le bord droit de la bande blanche (b). Sinon, le pixel suivant est défini (615) comme pixel en cours. Si ce pixel correspond à la fin de la zone de recherche, le dispositif de comptage selon l'invention quitte le processus de recherche (513, 517) de la position de transition en indiquant (616) qu'une erreur de recherche s'est produite. Sinon, la valeur de ce pixel est à son tour examinée par rapport à la valeur consigne.Once the left edge of the white strip (b) has been found, if the value of the current pixel is less than a set value, the pixel in course is defined (614) as the right edge of the white strip (b). Otherwise, the next pixel is defined (615) as the current pixel. If this pixel corresponds to the end of the search area, the counting device according to the invention leaves the search process (513, 517) from the position of transition indicating (616) that a search error has occurred. Otherwise, the value of this pixel is in turn examined against the value setpoint.

Une fois que le bord doit de la bande blanche (b) a été trouvé, si la largeur de la bande blanche (b) est comprise entre une taille minimale et une taille maximale, la position de transition est mémorisée (617) comme étant le milieu de la bande blanche (b). Sinon, le dispositif de comptage selon l'invention quitte le processus de recherche (513, 517) de la position de transition en indiquant (618) qu'une erreur de recherche s'est produite.Once the edge of the white strip (b) has been found, if the width of the white band (b) is between a minimum size and a maximum size, the transition position is memorized (617) as the middle of the white strip (b). Otherwise, the counting device according to the invention leaves the search process (513, 517) from the position of transition indicating (618) that a search error has occurred.

Comme on le verra par la suite, les modules CIS (3 ; 31, 32, 33) effectuent, pendant un déplacement aller, par exemple une cinquantaine de balayages, effectués alternativement de gauche à droite et de droite à gauche et pendant le déplacement retour, par exemple une autre cinquantaine de balayages alternés. Comme représenté à la figure 8, à chaque balayage, le signal lumineux enregistré par les éléments photosensibles des circuits CIS (33) est constitué par un signal sinusoïdal dont les sommets représentent approximativement les milieux des produits, les vallées représentent les bords, et la distance séparant deux vallées correspond à l'épaisseur d'un produit à compter. Le premier sommet de coordonnées ys0 correspond en fait à un bord de détection de la barquette alors que le premier sommet ys1 correspond au premier produit à comptabiliser.As will be seen below, the CIS modules (3; 3 1 , 3 2 , 3 3 ) carry out, during a forward movement, for example around fifty scans, carried out alternately from left to right and from right to left and during the return movement, for example another fifty alternating scans. As shown in FIG. 8, with each scan, the light signal recorded by the photosensitive elements of the CIS circuits (33) consists of a sinusoidal signal whose vertices represent approximately the mediums of the products, the valleys represent the edges, and the distance separating two valleys corresponds to the thickness of a product to be counted. The first vertex with coordinates ys0 corresponds in fact to a detection edge of the tray while the first vertex ys1 corresponds to the first product to be counted.

Entre le balayage N°1 et le balayage N°2, le microprocesseur du dispositif de comptage selon l'invention, commandé par un programme mettant en oeuvre les algorithmes décrits ci-après, permet d'effectuer le traitement des données mémorisées au cours du premier balayage, avant de valider la mémorisation d'un deuxième balayage, représenté à la figure 7.Between scan # 1 and scan # 2, the microprocessor in the counting device according to the invention, controlled by a program using the algorithms described below, enables the processing of the data stored during the first scan, before validate the storage of a second scan, shown in Figure 7.

Le programme de lecture des balayages mémorisés et de comptabilisation des produits correspond à la mise en oeuvre des algorithmes représentés aux figures 9 à 15.The program for reading stored scans and revenue recognition corresponds to the implementation of algorithms shown in Figures 9 to 15.

Le procédé de comptage, mis en oeuvre par le dispositif de comptage selon l'invention, est représenté sur la figure 9. Il commence lorsque le bouton poussoir est enfoncé par l'utilisateur (910). Le procédé consiste alors à effectuer le traitement (911) d'une ligne, puis à effectuer un test (912) pour savoir si un nombre déterminé de lignes, par exemple 100, a été balayé. Dans la négative, le résultat est mémorisé (913), puis un test (914) est effectué pour déterminer si le nombre déterminé de balayages linéaires a été effectué. Dans l'affirmative, le test (914) est effectué directement, sans mémorisation (913) du résultat. Si le nombre déterminé de balayages linéaires n'a pas été effectué, le programme traite (911) la ligne suivante. Dans le cas contraire, le procédé se poursuit par un traitement (915) résultats, puis par l'affichage (916) d'un compte-rendu. Enfin, un test (917) est effectué pour savoir s'il y a lieu de procéder à un cycle suivant. Dans la négative, le test (917) est de nouveau effectué pour savoir s'il y a lieu de procéder à un cycle suivant. Dans l'affirmative, c'est-à-dire si le dispositif selon l'invention détecte que le bouton poussoir a été de nouveau enfoncé, le procédé recommence depuis l'étape (910).The counting process, implemented by the counting device according to the invention, is shown in Figure 9. It begins when the push button is pressed by the user (910). The process then consists to carry out the processing (911) of a line, then to carry out a test (912) to find out if a certain number of lines, for example 100, has been scanned. If not, the result is stored (913), then a test (914) is performed to determine if the determined number of linear scans has been made. If yes, the test (914) is carried out directly, without storage (913) of the result. If the determined number of scans has not been performed, the program processes (911) the next line. Otherwise, the process continues with processing (915) results, then by posting (916) a report. Finally, a test (917) is carried out to determine whether there is a need for a next cycle. In the negative, the test (917) is carried out again to determine whether there is reason to proceed to a next cycle. If so, that is, if the device according to the invention detects that the push button has been pressed again, the process starts again from step (910).

L'étape de traitement (911) d'une ligne correspond à la succession des étapes représentées sur la figure 10. The processing step (911) of a line corresponds to the succession steps shown in Figure 10.

L'étape de traitement (911) d'une ligne commence par une étape d'inversion du sens de balayage (9110) et se poursuit par une étape de test (9111) sur la détermination du sens. Dans le cas d'un balayage de gauche à droite, la ligne est mémorisée à l'étape (9112) et dans le cas d'un balayage de droite à gauche, la ligne est mémorisée à l'étape (9113). Chacune de ces étapes (9112, 9113) est suivie, si le dispositif de comptage selon l'invention est équipé de plusieurs modules CIS, d'une étape de concaténation (9114) des images lues par les différents modules CIS. L'étape de traitement (911) d'une ligne se poursuit, successivement, par une étape de recherche (9115) des bords de la barquette, par une étape de pré-traitement (9116) des données, par une étape d'analyse et de comptabilisation (9117) des produits (1) à compter, et par une étape d'affichage des résultats (9118).The processing step (911) of a line begins with a step reversing the scanning direction (9110) and continues with a test step (9111) on determining the meaning. In the case of a sweep from left to right, the line is memorized in step (9112) and in the case of a scan from right to left, the line is stored in step (9113). Each of these steps (9112, 9113) are followed, if the counting device according to the invention is equipped with several CIS modules, a concatenation step (9114) images read by the different CIS modules. The processing stage (911) of a line is continued, successively, by a search step (9115) the edges of the tray, by a pre-treatment step (9116) of the data, through a product analysis and accounting step (9117) (1) to count, and by a step of displaying the results (9118).

L'étape de concaténation (9114) des images est représentée sur la figure 11. Elle permet d'éviter le chevauchement des images en tenant compte des zones de lecture définies pour chaque module CIS lors du processus d'étalonnage des modules.The image concatenation step (9114) is shown in the figure 11. It makes it possible to avoid overlapping of the images by taking counts the reading areas defined for each CIS module during the module calibration process.

L'étape de concaténation (9114) des images commence par une définition (91140) du module le plus à gauche comme module en cours, puis par une définition (91141) du premier pixel de l'image à reconstituer comme pixel en cours de ladite image. Le début de la zone de lecture (d1, d2, d3) à utiliser est ensuite défini (91142) comme pixel en cours du module (31, 32, 33). Puis le pixel en cours du module est défini (91143) comme le pixel en cours de l'image. Puis le pixel en cours de l'image est incrémenté (91144). Un test (91145) est alors effectué pour déterminer si le pixel en cours correspond à la fin de la zone de lecture (f1, f2, f3) à utiliser. Dans la négative, le pixel du module est incrémenté (91146), étape suivie par l'étape de définition (91143) du pixel en cours du module comme pixel en cours de l'image. Dans l'affirmative, un test (91147) est effectué pour déterminer si le module en cours est le dernier module. Dans la négative, le module est incrémenté (91148), étape suivie par l'étape de définition (91142) du début de la zone de lecture (d1, d2, d3) à utiliser comme pixel en cours du module (31, 32, 33). Dans la négative, l'étape de concaténation se termine. The image concatenation step (9114) begins with a definition (91140) of the leftmost module as the current module, then with a definition (91141) of the first pixel of the image to be reconstituted as the current pixel of said image picture. The start of the reading area (d 1 , d 2 , d 3 ) to be used is then defined (91142) as the current pixel of the module (3 1 , 3 2 , 3 3 ). Then the current pixel of the module is defined (91143) as the current pixel of the image. Then the current pixel of the image is incremented (91144). A test (91145) is then carried out to determine whether the current pixel corresponds to the end of the reading area (f 1 , f 2 , f 3 ) to be used. If not, the module's pixel is incremented (91146), a step followed by the step of defining (91143) the current pixel of the module as the current pixel of the image. If so, a test (91147) is performed to determine if the module in progress is the last module. If not, the module is incremented (91148), step followed by the definition step (91142) of the start of the reading area (d 1 , d 2 , d 3 ) to be used as the module's current pixel (3 1 , 3 2 , 3 3 ). If not, the concatenation step ends.

L'étape de recherche (9115) des bords de la barquette (2) est représentée sur la figure 12. Cette étape de recherche est réalisée deux fois, une première fois pour déterminer le bord le plus à gauche de la barquette, une deuxième fois pour déterminer le bord le plus à droite de la barquette. L'étape de recherche (9115) des bords commence par une étape de définition (91150) du premier (resp. dernier) pixel de la ligne mémorisée comme pixel en cours de l'image. A cette étape succède une étape de définition (91151) de la valeur du pixel en cours comme valeur de référence. Cette information est constituée par un mot de 8 bits représentatif d'un des 256 niveaux de luminosité reçus par l'élément photosensible du module CIS correspondant au mot mémoire traité. A cette étape succède une étape de recherche (91152) de sommet local, qui se poursuit par une étape de calcul (91153) de la différence entre le niveau local et la valeur de référence mémorisée à l'étape (91151). L'étape de recherche (9115) des bords se poursuit par une étape de test (91154) pour déterminer si cette différence est supérieure à une valeur de consigne. Dans l'affirmative, un bord a été trouvé et la position du pixel correspondant est mémorisée (91155). Dans la négative, l'étape de recherche (9115) des bords se poursuit par l'étape de mémorisation (91156) du pixel en cours comme pixel de référence. A cette étape succède une étape de test (91157) pour déterminer s'il s'agit de la fin (resp. du début) d'une ligne. Dans la négative, l'étape de recherche (9115) des bords se poursuit par l'étape de recherche (91152) de sommet local. Dans l'affirmative, le dispositif mémorise (91158) que le bord n'a pas été trouvé.The search step (9115) of the edges of the tray (2) is represented in FIG. 12. This search step is carried out twice, a first time to determine the leftmost edge of the tray, a second time to determine the rightmost edge of the tray. The edge search step (9115) begins with a step of definition (91150) of the first (resp. last) pixel of the stored line as the current pixel of the image. This stage is followed by a stage of definition (91151) of the value of the current pixel as a reference value. This information consists of an 8-bit word representative of one of the 256 brightness levels received by the photosensitive element of the CIS module corresponding to the memory word processed. This stage is followed by a stage of local vertex search (91152), which continues with a calculation step (91153) of the difference between the local level and the reference value memorized in step (91151). The search step (9115) of the edges is continues with a test step (91154) to determine if this difference is greater than a setpoint. If so, an edge has been found and the position of the corresponding pixel is stored (91155). In the negative, the edge search step (9115) continues with the step of storage (91156) of the current pixel as a reference pixel. At this step succeeds test step (91157) to determine if it is the end (resp. from the beginning) of a line. If not, the research step (9115) of edges continues with the search step (91152) of local vertex. If so, the device memorizes (91158) that the edge has not been find.

La valeur de consigne de l'étape (91154) correspond en général à la différence de niveaux de luminosité qui sépare en moyenne un sommet d'une vallée et, comme on peut le voir sur le diagramme de la figure 8, l'étape de recherche (9115) des bords permet de détecter comme un bord le sommet ys0 puis, comme on le verra plus tard, lors du traitement de la vallée, s'apercevant que la différence de niveaux de luminosité d1 entre le sommet et la vallée suivante est inférieure à une autre consigne et que le pourcentage de variation des sommets est supérieur à une valeur déterminée, il considère qu'il ne s'agit pas du bord de la barquette et détecte le sommet suivant ys1 comme étant le bord effectif de la barquette.The setpoint of step (91154) generally corresponds to the difference in brightness levels which separates on average a vertex of a valley and, as can be seen in the diagram in Figure 8, the edge search step (9115) makes it possible to detect as an edge the vertex ys0 then, as we will see later, when processing the valley, noticing that the difference in brightness levels d1 between the summit and the next valley is less than another setpoint and that the percentage of vertex variation is greater than a value determined, it considers that it is not the edge of the tray and detects the next vertex ys1 as being the effective edge of the tray.

L'étape de pré-traitement (9116) des données, représentée sur la figure 13, n'est pas une étape obligatoire du procédé de comptage selon l'invention. Elle permet de moyenner un nombre déterminé de lignes pour diminuer le bruit de fond et/ou d'auto-corréler l'image pour renforcer la forme du signal.The preprocessing step (9116) of the data, represented on the Figure 13 is not a compulsory step in the counting process according to the invention. It allows to average a determined number of lines for decrease background noise and / or auto-correlate image to enhance shape of the signal.

L'étape de pré-traitement (9116) commence par une étape (91160) d'initialisation à zéro de l'indice n, qui est réalisée au moment du départ du cycle (910, figure 9), et de mémorisation dans chacune des X mémoires tampon de la ligne en cours de traitement. L'étape de pré-traitement (9116) se poursuit par un test (91161) pour déterminer, suivant la configuration du dispositif de comptage, si l'utilisation d'un moyennage est appropriée. Dans la négative, l'étape de pré-traitement (9116) se poursuit par un test (91162) pour déterminer, suivant la configuration du dispositif de comptage, si l'utilisation d'une auto-corrélation est appropriée. Si l'utilisation d'un moyennage est appropriée, l'étape de pré-traitement (9116) se poursuit par la mémorisation (911611) dans la mémoire tampon n associée à la ligne en cours, de la ligne en cours de traitement, puis par l'incrémentation (911612) de l'indice de la mémoire tampon. L'étape de pré-traitement (9116) se poursuit par un test (911613) pour déterminer si l'indice de la mémoire tampon en cours (n) dépasse le nombre de lignes à moyenner (X). Dans l'affirmative, l'indice de la mémoire tampon en cours est remis à zéro (911614), puis la ligne en cours est calculée (911615) en moyennant pixel par pixel sur toutes les lignes (X) mémorisées dans les X mémoires tampon. Dans la négative, l'étape de pré-traitement (9116) se poursuit directement par l'étape de calcul (911615). La prochaine étape est un test (91162) pour déterminer, suivant la configuration du dispositif de comptage, si l'utilisation d'une auto-corrélation est appropriée. Dans la négative, l'étape de pré-traitement (9116) s'achève (91163). Dans l'affirmative, l'étape de pré-traitement (9116) se poursuit par une définition (911621) du bord gauche de la barquette comme pixel en cours, puis par le calcul (911622) d'auto-corrélation du pixel en cours. Le pixel en cours est alors incrémenté (911623), puis un test (911624) est effectué pour déterminer si le pixel en cours correspond au bord droit de la barquette. Dans l'affirmative, l'étape de pré-traitement (9116) s'achève (91163). Dans la négative, le pixel en cours est calculé (911622) suivant la formule d'auto-corrélation de la figure 13.The pre-treatment step (9116) begins with a step (91160) initialization at zero of the index n, which is carried out at the start of the cycle (910, figure 9), and storage in each of the X memories buffer of the line being processed. The pre-treatment stage (9116) continues with a test (91161) to determine, depending on the configuration of the counting device, if the use of averaging is appropriate. In if not, the pre-processing step (9116) continues with a test (91162) to determine, depending on the configuration of the counting device, whether the use of auto-correlation is appropriate. If the use of a averaging is appropriate, the preprocessing step (9116) continues with the storage (911611) in the buffer memory n associated with the line in course, from the line being processed, then by incrementing (911612) of the buffer index. The pre-treatment stage (9116) is continues with a test (911613) to determine if the memory index current buffer (n) exceeds the number of lines to average (X). In if so, the current buffer index is reset to zero (911614), then the current line is calculated (911615) in pixel averaging per pixel on all the lines (X) stored in the X buffer memories. If not, the pre-processing step (9116) continues directly by the calculation step (911615). The next step is a test (91162) for determine, depending on the configuration of the counting device, whether the use an autocorrelation is appropriate. If not, the pre-treatment stage (9116) ends (91163). If yes, the pre-treatment stage (9116) continues with a definition (911621) of the left edge of the tray as a current pixel, then by the autocorrelation calculation (911622) of the current pixel. The current pixel is then incremented (911623), then a test (911624) is performed to determine if the pixel in course corresponds to the right edge of the tray. If so, the pre-treatment (9116) ends (91163). If not, the current pixel is calculated (911622) using the autocorrelation formula in Figure 13.

L'étape d'analyse et de comptabilisation (9117) des produits (1) entre les bords est représentée sur la figure 14. Elle commence par une étape de lecture (91170) d'un pixel pour se poursuivre par une étape de test (91171) sur le type de séquence. Ce test s'effectue en déterminant si la différence entre le pixel en cours de traitement et le pixel précédent est positive ou négative et, dans le cas où elle est positive, enclenche le processus de traitement "sommet local" et dans le cas où elle est négative enclenche le processus de traitement "vallée locale".The product analysis and accounting step (9117) (1) between the edges is shown in Figure 14. It begins with a step of reading (91170) of a pixel to continue with a test step (91171) on the type of sequence. This test is carried out by determining whether the difference between the pixel being processed and the previous pixel is positive or negative and, if it is positive, starts the process of "local vertex" processing and if it is negative triggers the "local valley" treatment process.

Le processus de traitement "sommet local" débute par une étape de mesure (91172) de la distance (dss) entre sommets et se poursuit par une étape de test (911721 ) pour déterminer si cette distance (dss) est supérieure à une distance minimum. Dans la négative, le processus de traitement "sommet local" se poursuit par une étape de traitement du pixel suivant et par le test (91171) sur le type de séquence. Dans l'affirmative, le processus de traitement "sommet local" se poursuit par une étape de calcul (911722) du pourcentage de variation des sommets : (ys2 - ys1 ) x 100 / ys1. Si cette variation est supérieure à une valeur consigne, le processus de traitement "sommet local" se poursuit par une étape de test (911723) pour déterminer si la variation est négative. Dans l'affirmative, le processus de traitement "sommet local" se poursuit par l'étape de lecture (91170) d'un pixel. Si la variation est positive, le processus de traitement "sommet local" se poursuit par une étape de test (911724) consistant à lire le contenu du compteur du nombre de produits et à déterminer si le contenu de ce compteur est inférieur à 3. Si la réponse est négative, le processus de traitement "sommet local" se poursuit par l'étape de lecture (91170) d'un pixel. Si la réponse est affirmative, le programme se poursuit par une étape de recalage (911725) du bord, en considérant que le sommet traité est en fait le véritable bord de la barquette. Ceci correspond exactement à la situation où, dans un premier temps, le processus de traitement "sommet local" a détecté ys0 et qu'ensuite, en détectant ys1, il constate que la variation pour ys1 est supérieure à la valeur consigne et ensuite, vérifiant que le nombre de produits est inférieur à 3, il considère que ys1 est le véritable bord de l'ensemble de produits à compter. Si la variation est inférieure à la consigne, le processus de traitement "sommet local" valide (911726) le sommet en incrémentant un compteur qui comptabilise les sommets.The "local summit" treatment process begins with a step of measure (91172) of the distance (dss) between vertices and continues with a test step (911721) to determine if this distance (dss) is greater at a minimum distance. If not, the processing process "local vertex" continues with a processing step of the next pixel and by the test (91171) on the type of sequence. If so, the process "local vertex" processing continues with a step of calculating (911722) the percentage of variation of the vertices: (ys2 - ys1) x 100 / ys1. If this variation is greater than a set value, the treatment process "local summit" continues with a test step (911723) to determine if the variation is negative. If so, the treatment process "local vertex" continues with the reading step (91170) of a pixel. If the variation is positive, the "local summit" treatment process continues by a test step (911724) consisting in reading the content of the counter of the number of products and to determine if the content of this counter is less to 3. If the answer is negative, the "local summit" processing process ends. continues with the reading step (91170) of a pixel. If the answer is affirmative, the program continues with a registration step (911725) of the edge, considering that the treated vertex is actually the true edge of the tray. This corresponds exactly to the situation where, in a first time, the "local top" processing process detected ys0 and that then, by detecting ys1, he finds that the variation for ys1 is greater than the set value and then, checking that the number of products is less than 3, it considers that ys1 is the real edge of the set of products to be counted. If the variation is less than the setpoint, the "local top" processing process validates (911726) the top in incrementing a counter which counts the vertices.

Cette étape de validation (911726) d'un sommet est suivie d'un saut au séquenceur de vallée locale en renvoyant l'étape d'analyse et de comptabilisation (9117) des produits avant l'étape de test (91171) sur le type de séquence, pour traiter une vallée locale selon le processus de traitement "vallée locale" ci-après.This validation step (911726) of a vertex is followed by a jump to the local valley sequencer by returning the analysis and accounting (9117) of the products before the test step (91171) on the type sequence, to process a local valley according to the processing process "local valley" below.

Ce traitement "vallée locale" commence toujours par le test (91171) sur le type de séquence et se poursuit ensuite par une étape de mesure (91173) de la distance sommet-vallée (dsv) et de la distance vallée-vallée (dvv). A cette étape succède une étape de test (911731) pour déterminer si les deux distances (dsv, dvv) sont correctes par rapport à des valeurs de référence. Dans la négative, le processus de traitement "vallée locale" se poursuit par le traitement du pixel suivant et l'étape de test (91171) sur le type de séquence. Dans l'affirmative, si les distances sont correctes le processus de traitement "vallée locale" se poursuit par une étape de validation (911732) de la vallée, qui consiste à incrémenter un compteur de vallée. Cette étape est suivie d'un saut au séquenceur de sommet local en renvoyant l'étape d'analyse et de comptabilisation (9117) des produits avant l'étape de test (91171) sur le type de séquence, pour traiter un sommet local selon le processus de traitement "sommet local".This "local valley" treatment always begins with the test (91171) on the type of sequence and then continues with a measurement step (91173) of the summit-valley distance (dsv) and the valley-valley distance (DOV). This step is followed by a test step (911731) to determine if the two distances (dsv, dvv) are correct with respect to values of reference. If not, the "local valley" treatment process is continues with the processing of the next pixel and the test step (91171) on the sequence type. If so, if the distances are correct the "local valley" treatment process continues with a step of validation (911732) of the valley, which consists in incrementing a counter of valley. This step is followed by a jump to the local vertex sequencer in returning the analysis and accounting step (9117) of the products before the test step (91171) on the type of sequence, to process a local vertex according to the "local summit" processing process.

Après cette étape d'analyse et comptabilisation (9117) des produits pour chaque balayage où le nombre de produits comptés est mémorisé pour chaque balayage, le procédé de comptage selon l'invention comprend une étape de traitement (915, figure 9) des résultats, après que le microprocesseur du dispositif de comptage selon l'invention ait déterminé qu'il s'agissait d'une étape de fin de cycle (914, figure 9). L'étape de traitement (915) des résultats est représentée sur la figure 12. Elle commence par un tri (9150) des résultats par ordre croissant, et se poursuit par une construction (9151) d'un histogramme des résultats et une recherche (9152) de la plus grande occurrence entre les résultats. Ainsi, sur la centaine de balayages, le microprocesseur va pouvoir déterminer, par exemple, que le nombre 950 revient plus souvent que le nombre 939, 940 ou 945. Le nombre 950 est alors mémorisé, et l'étape de traitement (915) des résultats se poursuit par un test (9153) pour déterminer si le taux de réussite de ce nombre de plus grande occurrence est inférieur à une valeur consigne. Si, par exemple, la valeur 950 revient plus de 7 fois sur 8 comptages, le microprocesseur considère que la valeur consigne a été atteinte et l'étape de traitement (915) des résultats se poursuit par une étape de test (9154) pour déterminer s'il y a eu une bonne détection des bords. Sinon, le dispositif de comptage selon l'invention signale (91530) un mauvais comptage et affiche (9159) "pas de produit trouvé". Cette étape de test (9154) sur la détection des bords consiste à lire un sémaphore qui aura été positionné au cours des étapes (91155, figure 12 ou 911725, figure 14), indiquant que les bords ont effectivement bien été détectés. Dans le cas négatif, le dispositif de comptage selon l'invention signale (91540) une mauvaise détection des bords et affiche (9159) "pas de produit trouvé". Dans l'affirmative, l'étape de traitement (915) des résultats se poursuit par une étape de test (9155) sur la détection de la saturation des éléments photosensibles des circuits CIS. Dans l'affirmative, le dispositif de comptage selon l'invention signale (91550) qu'il y a trop de lumière et affiche (9159) "pas de produit trouvé". Dans la négative, l'étape de traitement (915) des résultats se poursuit par une étape de test (9156) pour déterminer si l'information lue avait une bonne netteté. Dans la négative, le dispositif de comptage selon l'invention signale (91560) un défaut de contraste et affiche (9159) "pas de produit trouvé". Dans l'affirmative, l'étape de traitement (915) des résultats se poursuit par une étape de test (9157) sur le nombre de produits pour déterminer si ce nombre est supérieur à zéro. Dans la négative, le dispositif de comptage selon l'invention signale (91570) une mauvaise lecture et affiche (9159) "pas de produit trouvé". Dans l'affirmative, l'étape de traitement (915) des résultats se termine par une étape d'affichage (9158) du nombre de produits et du taux de réussite.After this step of analysis and accounting (9117) of the products for each scan where the number of products counted is memorized for each scan, the counting method according to the invention comprises a processing step (915, FIG. 9) of the results, after the microprocessor of the counting device according to the invention has determined that it was an end-of-cycle step (914, Figure 9). The stage of processing (915) of the results is represented in FIG. 12. It starts with sorting (9150) the results in ascending order, and continues by a construction (9151) of a histogram of the results and a search (9152) of the largest occurrence between the results. So out of the hundred scans, the microprocessor will be able to determine, for example, that the number 950 comes up more often than the number 939, 940 or 945. The number 950 is then stored, and the processing step (915) of the results is continues with a test (9153) to determine whether the success rate of this number of greatest occurrence is less than a set value. Yes, for example, the value 950 returns more than 7 times on 8 counts, the microprocessor considers that the setpoint has been reached and the step of processing (915) of the results continues with a test step (9154) for determine if there has been good edge detection. Otherwise, the counting according to the invention signals (91530) a bad counting and displays (9159) "no product found". This test step (9154) on detection of the edges consists in reading a semaphore which will have been positioned during the steps (91155, figure 12 or 911725, figure 14), indicating that the edges have actually been detected. In the negative case, the counting according to the invention signals (91540) poor detection of edges and poster (9159) "no product found". If so, the processing (915) of the results is continued by a test step (9155) on the detection of the saturation of photosensitive elements of CIS circuits. If so, the counting device according to the invention signals (91550) there is too much light and displays (9159) "no product found". In the negative, the processing step (915) of the results continues with a step test (9156) to determine if the information read had a good clarity. If not, the counting device according to the invention signals (91560) a contrast defect and displays (9159) "no product found". In if so, the processing step (915) of the results continues with a test step (9157) on the number of products to determine if this number is greater than zero. If not, the counting device according to the invention indicates (91570) a bad reading and displays (9159) "no product found ". If so, the processing step (915) of the results is ends with a display step (9158) of the number of products and the rate of success.

La figure 7 représente une autre variante du dispositif de déplacement mécanique des barquettes (2) sous le faisceau de lecture de façon à pouvoir effectuer une pluralité de balayages transversaux par rapport au sens de déplacement des barquettes (2). Comme on peut le voir, ces barquettes (2) sont montées sur une courroie à taquets (6), elle-même tendue entre deux poulies d'entraínement, dont au moins l'une est entraínée en rotation par un moteur électrique alimenté de façon séquentielle après le traitement des 100 lignes de balayage ou du nombre de lignes de balayage souhaité pour atteindre un taux de réussite suffisant.FIG. 7 represents another variant of the displacement device mechanical trays (2) under the reading beam so that perform a plurality of transverse scans with respect to the direction of displacement of the trays (2). As we can see, these trays (2) are mounted on a cleat belt (6), itself tensioned between two drive pulleys, at least one of which is rotated by a electric motor powered sequentially after processing 100 scan lines or the desired number of scan lines for achieve a sufficient success rate.

Il doit être évident, pour les personnes versées dans l'art, que la présente invention permet des modes de réalisation sous de nombreuses autres formes spécifiques sans l'éloigner du domaine d'application de l'invention comme revendiqué. Par conséquent, les présents modes de réalisation doivent être considérés à titre d'illustration, mais peuvent être modifiés dans le domaine défini par la portée des revendications jointes, et l'invention ne doit pas être limitée aux détails donnés ci-dessus.It should be obvious to those skilled in the art that the present invention allows embodiments under many other specific forms without departing from the scope of the invention as claimed. Therefore, the present modes of achievement should be considered illustrative, but may be modified in the field defined by the scope of the appended claims, and the invention should not be limited to the details given above.

Claims (9)

Dispositif de comptage de produits (1) peu épais pouvant être empilés côte à côte dans une barquette (2), caractérisé en ce qu'il comprend au moins un poste de comptage constitué d'au moins un module CIS (3 ; 31, 32, 33), dont la longueur totale est au moins égale à la longueur de la barquette (2), et des moyens d'effectuer une pluralité de balayages dans une direction transversale à la barquette (2), chaque module CIS (3 ; 31, 32, 33) comportant au moins des moyens d'éclairage (31) longitudinal des produits (1), et au moins un circuit CIS (33), constitué d'une pluralité d'éléments photosensibles, connecté à au moins un circuit imprimé (34), le dispositif de comptage pouvant également comprendre des moyens de détection de la mise en place de la barquette (2), des moyens de déplacement de la barquette ou des modules CIS dans une direction perpendiculaire au faisceau linéaire, des moyens de mémorisation des signaux représentatifs des informations du faisceau lumineux réfléchi par les produits (1), et des moyens de traitement de ces informations pour déterminer le nombre de produits (1).Device for counting thin products (1) which can be stacked side by side in a tray (2), characterized in that it comprises at least one counting station consisting of at least one CIS module (3; 3 1 , 3 2 , 3 3 ), the total length of which is at least equal to the length of the tray (2), and means for carrying out a plurality of scans in a direction transverse to the tray (2), each CIS module ( 3; 3 1 , 3 2 , 3 3 ) comprising at least longitudinal lighting means (31) for the products (1), and at least one CIS circuit (33), consisting of a plurality of photosensitive elements, connected at least one printed circuit (34), the counting device also being able to comprise means for detecting the positioning of the tray (2), means for moving the tray or the CIS modules in a direction perpendicular to the beam linear, means for memorizing the signals representative of the information of u light beam reflected by the products (1), and means for processing this information to determine the number of products (1). Dispositif de comptage selon la revendication 1, caractérisé en ce qu'il comprend un moyen (6) de transport et de présentation successive de barquettes (2) devant le(s) poste(s) de comptage.Counting device according to claim 1, characterized in that it comprises a means (6) of transport and successive presentation of trays (2) in front of the counting station (s). Dispositif de comptage selon la revendication 1 ou 2, caractérisé en ce que chaque module CIS (31, 32, 33) comporte une lentille (32) permettant de focaliser le faisceau réfléchi par les produits (1) sur le(s) circuit(s) CIS (33).Counting device according to claim 1 or 2, characterized in that each CIS module (3 1 , 3 2 , 3 3 ) has a lens (32) for focusing the beam reflected by the products (1) on the (s) CIS circuit (s) (33). Dispositif de comptage selon une des revendications 1 à 3, caractérisé en ce que, les faisceaux d'éclairage des modules CIS adjacents se chevauchant au plus partiellement, le dispositif de comptage comprend des moyens d'étalonnage des modules CIS (31, 32, 33), permettant de définir une zone de lecture utile pour chaque module CIS, la zone de lecture utile d'un module CIS débutant à l'endroit où finit la zone de lecture utile du module CIS précédent, et en ce que les moyens de traitement permettant de mettre bout à bout les images lues par les zones de lecture utiles des différents modules CIS.Counting device according to one of Claims 1 to 3, characterized in that , the light beams of the adjacent CIS modules overlapping at most partially, the counting device comprises means for calibrating the CIS modules (3 1 , 3 2 , 3 3 ), used to define a useful reading area for each CIS module, the useful reading area of a CIS module starting at the point where the useful reading area of the previous CIS module ends, and in that the processing means enabling the images read by the useful reading areas of the different CIS modules to be placed end to end. Dispositif de comptage selon la revendication 4, caractérisé en ce que les moyens de mémorisation sont constitués par au moins autant d'octets mémoire que d'éléments photosensibles utiles des modules CIS.Counting device according to claim 4, characterized in that the storage means consist of at least as many memory bytes as useful photosensitive elements of the CIS modules. Dispositif de comptage selon la revendication 5, caractérisé en ce que chaque pixel, constitué de 256 niveaux de luminosité fournis par chaque élément photosensible, est combiné avec les pixels adjacents pour déterminer la présence des produits (1 ) et compter ces derniers.Counting device according to claim 5, characterized in that each pixel, consisting of 256 levels of brightness provided by each photosensitive element, is combined with the adjacent pixels to determine the presence of the products (1) and count them. Dispositif de comptage selon la revendication 5 ou 6, caractérisé en ce que chaque élément photosensible peut représenter une combinaison de couleurs pour un CIS couleur, ou bien un niveau de gris pour un CIS monochrome.Counting device according to claim 5 or 6, characterized in that each photosensitive element can represent a combination of colors for a color CIS, or else a gray level for a monochrome CIS. Dispositif selon une des revendications 4 à 7, caractérisé en ce que chaque poste de comptage permet la détection alternativement de sommets et de vallées, et en ce que les moyens de traitement permettent le comptage des sommets et des vallées constitutives du signal sinusoïdal mémorisé et représentatif du faisceau linéaire d'un balayage, chaque sommet correspondant, soit à un bord de barquette (2), soit à un produit (1) à compter.Device according to one of claims 4 to 7, characterized in that each counting station allows the alternating detection of peaks and valleys, and in that the processing means allow the counting of the peaks and valleys constituting the stored and representative sinusoidal signal of the linear beam of a scan, each vertex corresponding either to a tray edge (2) or to a product (1) to be counted. Dispositif de comptage selon une des revendications 4 à 8, caractérisé en ce que les moyens de traitement permettent un pré-traitement de l'image concaténée, par moyennage et/ou par auto-corrélation de l'image.Counting device according to one of claims 4 to 8, characterized in that the processing means allow pre-processing of the concatenated image, by averaging and / or by auto-correlation of the image.
EP04291109A 2003-04-30 2004-04-30 Device for counting stacked objects Withdrawn EP1473666A3 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
FR0305353 2003-04-30
FR0305353A FR2854476B1 (en) 2003-04-30 2003-04-30 DEVICE FOR COUNTING STACKED PRODUCTS

Publications (2)

Publication Number Publication Date
EP1473666A2 true EP1473666A2 (en) 2004-11-03
EP1473666A3 EP1473666A3 (en) 2009-04-01

Family

ID=32982343

Family Applications (1)

Application Number Title Priority Date Filing Date
EP04291109A Withdrawn EP1473666A3 (en) 2003-04-30 2004-04-30 Device for counting stacked objects

Country Status (4)

Country Link
US (1) US7045765B2 (en)
EP (1) EP1473666A3 (en)
JP (1) JP2004334873A (en)
FR (1) FR2854476B1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4868819B2 (en) * 2005-10-20 2012-02-01 パナソニック株式会社 Parts counting apparatus and parts counting method
FR2895119B1 (en) * 2005-12-19 2008-02-15 Datacard Corp DEVICE FOR COUNTING SMALL SERIES
FR2915601B1 (en) * 2007-04-26 2009-07-03 Datacard Corp DEVICE FOR COUNTING CARDS IN SMALL SERIES.
US9378454B2 (en) 2013-07-22 2016-06-28 Joseph G. Marquez Cup counter
CN103942595A (en) * 2014-04-29 2014-07-23 郑永深 Photoelectric sensing handheld counter
TWI509212B (en) * 2014-06-18 2015-11-21 Nat Applied Res Laboratories Item quantity estimation method
DE102015002419A1 (en) 2015-02-26 2016-09-01 Böwe Systec Gmbh Card counter and method for counting cards held in a stack or magazine
EP3286697A1 (en) * 2015-04-21 2018-02-28 Das-Nano, S.L. Counting stacked planar substrates
WO2017218574A1 (en) 2016-06-13 2017-12-21 Entrust Datacard Corporation Card counting systems and methods for same
CN108632534B (en) * 2018-07-19 2020-12-25 江苏阿瑞斯智能设备有限公司 CIS camera and image processing method based on CIS camera
CN108806017B (en) * 2018-08-23 2024-10-18 福耀集团(上海)汽车玻璃有限公司 Glass counting device and counting method
TWI723460B (en) * 2019-07-12 2021-04-01 環球晶圓股份有限公司 Method for counting quantity of sheet materials

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61120572A (en) * 1984-11-16 1986-06-07 Canon Inc reading device
US4995060A (en) * 1988-09-19 1991-02-19 Dynetics Engineering Corporation Card counter with card counting preset data entry system method
JPH02168372A (en) * 1988-12-22 1990-06-28 Toshiba Corp Bundle number detector
US5399964A (en) * 1993-08-23 1995-03-21 Elsag International N.V. Peak amplitude detector for use in a synchronized position demodulator
FR2718550B1 (en) * 1994-04-11 1996-07-26 Leroux Gilles Sa Product counting device.
US5534690A (en) * 1995-01-19 1996-07-09 Goldenberg; Lior Methods and apparatus for counting thin stacked objects
EP0743616A3 (en) * 1995-05-15 1998-01-14 Eastman Kodak Company Apparatus and method for counting sheets
JPH09319853A (en) * 1996-05-28 1997-12-12 Copal Co Ltd Paper sheet batch counting device
JP2002314762A (en) * 2001-04-09 2002-10-25 Sony Corp Image reading device
US6522428B1 (en) * 2002-06-04 2003-02-18 Umax Data Systems, Inc. Structure of foldable optical path
US7265881B2 (en) * 2002-12-20 2007-09-04 Hewlett-Packard Development Company, L.P. Method and apparatus for measuring assembly and alignment errors in sensor assemblies
US20040178373A1 (en) * 2003-03-14 2004-09-16 Graber Warren S. Card counter and method of counting cards

Also Published As

Publication number Publication date
EP1473666A3 (en) 2009-04-01
FR2854476B1 (en) 2005-07-01
US7045765B2 (en) 2006-05-16
JP2004334873A (en) 2004-11-25
FR2854476A1 (en) 2004-11-05
US20040217261A1 (en) 2004-11-04

Similar Documents

Publication Publication Date Title
FR2635208A1 (en) ARTICLE, IN PARTICULAR LABEL, HAVING INFORMATION CODED BY POLYGONES, AND METHOD AND SYSTEM FOR CODING AND READING THIS ARTICLE
EP1473666A2 (en) Device for counting stacked objects
EP1431907B1 (en) Evaluation of the sharpness of an image of the iris of an eye
EP0676718B1 (en) Arrangement for optically counting stacked products
EP2661222B1 (en) System and method for analysing at least one characteristic of the skin
FR2735891A1 (en) SYSTEM FOR READING DATA SYMBOLS
CA2053176A1 (en) Method of and apparatus for inspecting bottle or the like
CA2659544A1 (en) Batching process and facility for industrial bakery products
FR2572823A1 (en) READING DEVICE FOR BAR CODE
FR2725523A1 (en) APPARATUS FOR DETECTING DEFECTS IN THE BOTTOM OF BOTTLES BY HANDLING AN IMAGE TO REMOVE WHEELS
HU226345B1 (en) Method and apparatus for generating a robust reference image of a container and for selecting of a container
EP1133867B1 (en) Fluorescence-activated image acquisition apparatus and imaging system comprising same
FR2583893A1 (en) METHOD FOR SPECTROGRAPHICALLY MEASURING THE DENSITY OF A NEGATIVE COLOR PHOTOGRAPHIC FILM
EP0587484A1 (en) Device for analysing information carriers of game forms
EP3073441A1 (en) Method for correcting an image of at least one object presented remotely to an imager and illuminated by an illumination system and camera system for carrying out said method
FR2741521A1 (en) METHOD OF AUTOMATICALLY ACQUIRING DOPPLER ANGLE, IN ULTRASOUND, AND ARRANGEMENT FOR IMPLEMENTING THE METHOD
EP1431906B1 (en) Determination of a sharpness index of a digital image
EP0206853B1 (en) Method and device for the identification of closed contours of objects placed on a surface
CN1770180A (en) Device for counting stacked products
EP0692714A1 (en) Process and device for recognizing geometric characteristics of parallelepipedic parts of polygonal cross section
EP3877905A1 (en) Image sensor for optical code recognition
EP3304038B1 (en) Device with a single camera and measuring method for characterising rain drops
FR2688911A1 (en) METHOD FOR CREATING THE SIGNATURE OF AN OBJECT REPRESENTED ON A DIGITAL IMAGE, OF THE TYPE CONSISTING OF DEFINING AT LEAST ONE CHARACTERISTIC DIMENSIONAL SIZE OF THE OBJECT, AND CORRESPONDING METHOD FOR VERIFYING THE SIGNATURE OF AN OBJECT.
EP2553659B1 (en) Device for processing objects, having real-time monitoring of object image quality; sorting machine; and method
FR2501370A1 (en) Two colour temp. distribution measurement - using two optical filters with different transmission regions and transmitted light energy measurement

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

AK Designated contracting states

Kind code of ref document: A2

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LI LU MC NL PL PT RO SE SI SK TR

AX Request for extension of the european patent

Extension state: AL HR LT LV MK

17P Request for examination filed

Effective date: 20050329

PUAL Search report despatched

Free format text: ORIGINAL CODE: 0009013

AK Designated contracting states

Kind code of ref document: A3

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LI LU MC NL PL PT RO SE SI SK TR

AX Request for extension of the european patent

Extension state: AL HR LT LV MK

17Q First examination report despatched

Effective date: 20090616

AKX Designation fees paid

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LI LU MC NL PL PT RO SE SI SK TR

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN

18D Application deemed to be withdrawn

Effective date: 20091027