The invention relates to the technical field of reading a mark in the general sense such as a code, on the outside surface of a curved wall that is made of a material that is translucent or transparent.
The invention finds a particularly advantageous, but non-limiting, application in the field of reading a mark, a sign, or a code provided on the outside wall of a container, in particular a container made of glass or plastics material, such as, for example: a bottle, a jar, a bulb, a vial, an ophthalmic lens, etc.
In the field of reading a mark or a code on the curved wall of an article, document US 2006/0091214 proposes a device having a light source illuminating a diffusing screen that is pierced in its center for positioning the lens of a camera. The axis of the camera is colinear with the axis of the diffusing screen. The diffusing screen is fitted with a diffusing chamber enabling source lighting to be provided that provides multiple angles of incidence for reading the code.
It should be observed that the surface of the diffusing screen presents in its center a lighting-free zone that corresponds to the presence of the camera lens. With articles that produce specular reflections such as a glass surface, for example, the camera observes the source lighting reflected on the surface it is inspecting. The lighting-free zone of the source gives rise to a dark zone in the image that interferes with reading the code.
Furthermore, it should be observed that the device described in that document seeks to read a code made on an article that is opaque. As can be seen in
In the state of the art, it is also known from patent U.S. Pat. No. 4,644,151 to provide a device that is adapted to read a code on a container and corresponding to the number of the mold from which the container was molded. Such a code comprises a series of portions in relief or “beads”, each presenting a diameter of millimeter order. The code is illuminated by a light source, and its light rays as reflected by the portions in relief are recovered by a linear camera in order to determine the code written on the container. Such a reader device is not adapted to reading a code that presents little or no relief relative to the surface being inspected. Furthermore, such a device is unsuitable for reading a code with very small patterns or characters, e.g., smaller than one millimeter. Furthermore, such a device does not avoid interference from the image that is present as a result of reflection on the inside surface of the container. Finally, such a device requires scanning at constant pitch in order to read the code made over a large angular extent of the container.
The invention thus seeks to remedy the drawbacks of the prior art by providing a novel optical technique adapted to analyzing in reliable manner a mark made up of small patterns or characters and carried on the outside surface of a curved wall made of a material that is reflective and transparent or translucent.
To achieve such an object, the invention proposes a method of using a light source possessing a lighting surface and a camera presenting an observation optical axis to analyze a mark made on the outside surface of a curved wall made of a material that is translucent or transparent.
According to the invention, the method is performed by:
In a variant implementation, the method consists in observing the surface of the mark by acquiring an image or a series of images taken during relative movement between the camera and the wall.
Advantageously, the method consists in adapting the extent of the virtual image of the lighting surface of the light source to the curvature of the curved wall.
The invention also provides a device for analyzing a mark made on the outside surface of a curved wall made of a material that is translucent or transparent, the device comprising:
According to the invention:
In a variant embodiment, the light source comprises a back-lit diffusing screen that is offset relative to the lens of the camera.
In an embodiment, a deflector optical element is placed in front of the lens of the camera.
In a variant embodiment, the diffusing screen is extended on either side by mirrors placed facing each other.
In another variant embodiment, the diffusing screen is extended by a mirror extending in a plane that is substantially perpendicular to the planes in which the mirrors and the diffusing screen extend.
In another embodiment, the device includes an optical element between the diffusing screen and the curved wall, the optical element being adapted to form an image of the plane of the surface of the source in the plane of the pupil of the lens of the camera.
In another embodiment, the device includes a semitransparent optical element interposed between the lens of the camera and the curved wall, a diffusing screen being positioned symmetrically to the inlet pupil of the lens of the camera relative to the plane of the semitransparent optical element.
Advantageously, the mark is marking obtained by laser.
Various other characteristics appear from the following description made with reference to the accompanying drawings, which show embodiments of the invention as non-limiting examples.
As can be seen in
The wall 3 is made of a material that is reflective and transparent or translucent. For example, the wall 3 is made of glass or of plastics material. The wall 3 has two refracting surfaces corresponding to the outside surface 31 and the inside surface 32 of the article. The outside surface 31 extends substantially parallel to the inside surface 32 that thus co-operates with the outside surface 31 to define the thickness of the wall of the article. The outside surface 31 is a specular surface since it behaves like a mirror.
It should be observed that the device 1 of the invention seeks to analyze the mark 2 made on a non-plane wall 3, i.e. a wall that presents any shape that is curved. In the example shown in
The device 1 includes a light source 5 and a camera 6 conventionally provided with a lens 7 having an observation optical axis A and an optical field of view C. Naturally, the optical field of view C of the camera 6 is adapted to cover or observe at least the entire area of the mark 2 made on the outside surface 31 of the curved wall, with the camera 6 conventionally being a matrix camera.
The light source 5 possesses a uniform and extensive lighting surface S for lighting the outside surface 31 that, given its specular nature, creates a virtual image S′ of the lighting surface S by reflection. The virtual image S′ thus corresponds to the surface of the light source 5 as seen by the camera after reflection on the outside surface 31.
In
In accordance with the invention, the light source 5 possesses a lighting surface that is uniform and extensive. The light source 5 is such that:
It should be considered that the brightness of the virtual image S′ of the source is uniform, i.e. that it does not include zones of shade.
Furthermore, the virtual image S′ covers the entire surface area of the mark 2. Thus, the area of the virtual image S′ is not less than the area of the mark 2. In practice, and preferably, the area of the virtual image S′ is greater than the area of the mark 2 so as to be certain that, regardless of relative movements between the device 1 and the article, the surface of the mark 2 is completely covered by the surface of the virtual image S′. Preferably, the area of the virtual image S′ is at least 1.5 times greater than the area of the mark 2.
It should be understood that the camera 6 observes the virtual image S′ of the surface S of the light source 5 as a background to the mark 2. This mark 2 and the virtual image S′ are contained in the field of view C with the mark 2 being contained within the virtual image S′.
It should be observed that the light source 5 is such that the intensity of the virtual image S′ is sufficient to constitute a background that is not disturbed by interfering lighting. The light source 5 may be a pulsed source or a continuous source.
The dimensioning of the surface S of the light source 5 stems directly from the above description. The camera 6 observes in its optical field C the surface of the virtual image S′ of the reflected light source. The extension C′ of the optical field of view C serves to define the dimensions (height h and width l) of the surface S of the light source 5. In the example shown, the width l of the surface S lies in the transverse plane, i.e. it is perpendicular to the surfaces 31 and 32, whereas the height h is taken along the longitudinal axis x.
Advantageously, the surface S of the light source 5 is centered on the image A′ of the observation axis A after reflection on the outside surface 31.
According to an advantageous characteristic of the invention, the observation direction, i.e. the observation optical axis A of the camera, is substantially perpendicular to the outside surface 31 of the wall. The observation incident angle α is thus small because the image A′ of the observation axis A after reflection on the outside surface 31 is also substantially perpendicular to the outside surface 31. The observation optical axis A and the image A′ of the observation optical axis A after reflection are substantially parallel. In the meaning of the invention, the observation optical axis A is substantially parallel to the image A′ of the observation axis insofar as the angle between them is less than or equal to 10° (α≦5°) and is preferably typically equal to 6° (α=3°). Insofar as the observation direction is perpendicular to the outside surface 31, the secondary image of the outside surface formed by reflection on the inside surface 32 coincides with the main image of the outside surface 31, so that the interfering images corresponding to duplication of the mark 2 do not appear.
As can be seen from the invention, the camera 6 is adapted to acquire the image of the surface of the mark 2 superposed on the virtual image S′ of the source. In other words, the camera 6 is adapted to observe the mark 2 superposed on the virtual image S′. The mark 2 and the virtual image S′ are substantially in alignment on the observation axis A.
The image acquired by the image 6 is processed by a processor unit adapted to analyze or read the mark 2. Given the lighting and the observation conditions as described above, there are no interfering images in the image taken, in which image the mark 2 appears with good uniform contrast enabling the mark to be read reliably.
In this embodiment, the light source 5 has a diffusing screen 13 that is back-lit by a light emitter 14, e.g. implemented as a series of light-emitting diodes (LEDs). The diffusing screen 13 that defines the lighting surface S is offset relative to the camera lens 7. In other words, the diffusing screen 13 is separate from the camera 6. In this illustrated embodiment, the diffusing screen 13 is situated beneath the prism 11, i.e. the diffusing screen 13 is offset relative to the lens 7 along the longitudinal axis x of the article. Naturally, it is possible to envisage positioning the diffusing screen and the prism differently, by pivoting the assembly through 180°, such that the diffusing screen 13 is situated above the prism 11.
Advantageously, the camera 6 and its lens 7 extended by the tube 12 is mounted in an open box 16 so that the observation optical axis prior to deflection by the prism 11 is perpendicular to the longitudinal axis x of the article. The diffusing screen 13 is positioned beneath the prism 11, with the normal to the surface S being perpendicular to the longitudinal axis x of the article. The LEDs 14 are mounted behind the diffusing screen 13.
The diffusing screen 13 is extended on either side by mirrors 17 that are positioned to artificially increase the area of the light source 5 in a privileged direction, and in the example shown specifically in a direction that is horizontal, lying in the plane that is tangential to the curved outside surface 31. The surface S of the light source 5 is thus increased on either side by a surface S1 corresponding to the virtual image of the surface S as reflected in the mirrors 17. By way of example, the mirrors 17 face each other and are parallel to the longitudinal axis x, extending the diffusing screen 13. The presence of the mirrors 17 makes it possible to increase artificially the area of the diffusing screen 13 in a horizontal direction that is perpendicular to the longitudinal axis x. Thus, for a given width of box 16, the area of the light source 5 is extended horizontally (width l), since it corresponds to the surface area S of the light source 5 plus the two surface areas S1 of the mirrors 17. The presence of mirrors makes it possible to increase observation along the periphery or the circumference of the article without increasing the size of the light source 5 in the width direction.
The invention thus enables the extent of the virtual image S′ of the lighting surface S of the light source 5 to be adapted to the curvature of the curved wall 3. Thus, the greater the curvature of the wall 3 (the smaller its radius of curvature) the greater the width l of the surface of the light source 5.
In another variant embodiment, it should be observed that provision may be made to increase the surface area of the light source 5 artificially in a second direction, i.e. along the vertical axis x. In this example, the diffusing screen 13 is extended by a mirror 19 lying in a plane that is substantially perpendicular to the planes in which the mirrors 17 extend and the plane in which the diffusing screen 13 extends. The surface area of the light source 5 is thus increased in the vertical plane by an area S2 corresponding to the virtual image of the surface S resulting from reflection on the mirror 19.
In this example, the camera 6 provided its lens 7 is placed above the diffusing screen 13 that is back-lit by the LEDs 14 so that the observation and lighting optical axes, prior to passing through the Fresnel lens 21, are mutually parallel. It should be observed that the observation and lighting axes form an angle of less than 10° as a result of using the Fresnel lens 21, thus making it possible to avoid casting shadows.
It should be observed that the observation optical axis A is perpendicular to the longitudinal axis x of the article. For the observation and lighting optical axes to be colinear, a semitransparent optical element 23 is interposed between the lens 7 of the camera 6 and the outside surface 31 of the curved wall. In this example, the back-lit diffusing screen 13 is positioned symmetrically with the inlet pupil of the lens 7 of the camera 6 relative to the plane of the semitransparent optical element 23.
From the above description, it can be seen that the device 1 in accordance with the invention serves to acquire a mark 2 on a reflecting and transparent wall under good conditions. The device 1 of the invention finds a particularly advantageous application in reading a two-dimensional mark 2 such as a matrix code formed on the wall 3 of a glass container, as can be seen in
Furthermore, such a device 1 is compact, thus making it possible for it to be implemented in the form of a portable reader device, or making it easy for it to be integrated in a machine for in-line inspection of articles. It should be observed that provision may be made to observe the mark 2 by acquiring a single image or a series of successive images during relative movement between the camera and the wall, e.g. movement in rotation. With relative movement, the images, which may overlap, are analyzed together in order to read the mark 2.
The invention is not limited to the examples described and shown since various modifications can be applied thereto without going beyond its ambit.
Number | Date | Country | Kind |
---|---|---|---|
08 54615 | Jul 2008 | FR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/FR2009/051344 | 7/7/2009 | WO | 00 | 1/19/2011 |