CN116433926A - Film first frame determining method and device, electronic equipment and storage medium - Google Patents
Film first frame determining method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116433926A CN116433926A CN202310424498.3A CN202310424498A CN116433926A CN 116433926 A CN116433926 A CN 116433926A CN 202310424498 A CN202310424498 A CN 202310424498A CN 116433926 A CN116433926 A CN 116433926A
- Authority
- CN
- China
- Prior art keywords
- frame
- frame image
- film
- image
- determining
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000003287 optical effect Effects 0.000 claims abstract description 78
- 238000002834 transmittance Methods 0.000 claims description 112
- 238000004590 computer program Methods 0.000 claims description 16
- 239000003086 colorant Substances 0.000 claims description 12
- 238000012545 processing Methods 0.000 abstract description 14
- 238000012360 testing method Methods 0.000 description 26
- 238000004891 communication Methods 0.000 description 8
- 238000012512 characterization method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000002310 reflectometry Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/56—Extraction of image or video features relating to colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10052—Images from lightfield camera
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Quality & Reliability (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
The invention discloses a film first frame determining method, a film first frame determining device, electronic equipment and a storage medium. The method is performed by a first frame positioning system comprising an optical feature recognition device; the method comprises the following steps: sequentially acquiring optical characteristics of each frame of image in the film through an optical characteristic identification device; and determining the first frame of the film in each frame image according to the optical characteristics of each frame image. The technical scheme solves the problem of high limitation of mechanically positioning the film initial frame, and can identify the film initial frame in an image processing mode, so that the positioning accuracy of the film initial frame is improved, and the reliability of data resource acquisition is ensured.
Description
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and apparatus for determining a first frame of a film, an electronic device, and a storage medium.
Background
The digital film technology adopts a new mode of 'number-glue-number' film application, and the data resources to be saved are encoded to generate high-density encoded images and printed on the film. The encoded image on the film is decoded by an optical device to obtain a data asset.
The first frame of information needs to be found by the optical device to acquire the encoded image on the film. In the prior art, it is often necessary to manually install the film by hand to install the first frame in a fixed position. However, the manual positioning is prone to operating deviation, and the assembled film is prone to position deviation during the tightening process, so that a scheme for determining the first frame position of the film is needed.
Disclosure of Invention
The invention provides a film initial frame determining method, a device, electronic equipment and a storage medium, which are used for solving the problem of high limitation of mechanically positioning the film initial frame, identifying the film initial frame in an image processing mode, improving the positioning accuracy of the film initial frame and ensuring the reliability of data resource acquisition.
According to an aspect of the present invention, there is provided a film roll first frame determination method, the method being performed by a first frame positioning system including an optical feature recognition device; the method comprises the following steps:
sequentially acquiring optical characteristics of each frame of image in the film through an optical characteristic identification device;
and determining the first frame of the film in each frame image according to the optical characteristics of each frame image.
According to another aspect of the present invention, there is provided a film roll first frame determination apparatus, the apparatus being configured in a first frame positioning system including an optical feature recognition device; the device comprises:
the optical characteristic acquisition module is used for sequentially acquiring the optical characteristics of each frame of image in the film through the optical characteristic identification device;
and the film roll first frame determining module is used for determining the film roll first frame in each frame image according to the optical characteristics of each frame image.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the film first frame determination method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a film roll first frame determination method according to any one of the embodiments of the present invention.
According to the technical scheme, the optical characteristics of each frame of image in the film are sequentially acquired through the optical characteristic identification device in the first frame positioning system; and determining the first frame of the film in each frame image according to the optical characteristics of each frame image. The method solves the problem of high limitation of mechanically positioning the film initial frame, and can identify the film initial frame in an image processing mode, so that the positioning accuracy of the film initial frame is improved, and the reliability of data resource acquisition is ensured.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for determining a first frame of a film according to a first embodiment of the present invention;
FIG. 2 is a schematic color illustration of each frame of film in a film roll provided in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of a method for determining a first frame of a film according to a second embodiment of the present invention;
FIG. 4 is a flow chart of a method for determining a first frame of film according to a third embodiment of the present invention;
fig. 5 is a schematic structural view of a film roll first frame determining apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device implementing a film roll first frame determination method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus. The data acquisition, storage, use, processing and the like in the technical scheme meet the relevant regulations of national laws and regulations.
Example 1
Fig. 1 is a flowchart of a film roll first frame determining method according to an embodiment of the present invention, where the method may be performed by a film roll first frame determining device, and the device may be implemented in hardware and/or software, and the device may be configured in an electronic device. As shown in fig. 1, the method includes:
s110, sequentially acquiring the optical characteristics of each frame of image in the film through the optical characteristic identification device.
The scheme can be implemented by a first frame positioning system, and the first frame positioning system can comprise an optical characteristic identifier, a processor and the like. The optical feature recognition device may be used to recognize optical features of each frame of image in the film, which may include features such as color, light transmittance, and reflectivity. The first frame positioning system can acquire the optical characteristics of each frame of image in the film through the optical characteristic identification device.
S120, determining a film first frame in each frame image according to the optical characteristics of each frame image.
It will be appreciated that there are test frames in the film for imaging testing of the film. Fig. 2 is a schematic color diagram of each frame of film in the film according to the embodiment of the present invention. As shown in fig. 2, the colors of the test frame film and the non-test frame film in the film are obviously different, and the optical characteristics of the color, the light transmittance and the like of each frame image are also different, so that the test frame can be identified according to the optical characteristics of each frame image, and then the first frame of the film is determined according to the test frame.
In one possible solution, the optical feature recognition device comprises a color recognition device; the optical features include color features;
the method for sequentially acquiring the optical characteristics of each frame of image in the film through the optical characteristic identification device comprises the following steps:
sequentially acquiring color characteristics of each frame of image in the film through a color identification device;
the method for determining the film first frame in each frame image according to the optical characteristics of each frame image comprises the following steps:
and determining the first frame of the film in each frame image according to the color characteristics of each frame image.
The optical feature recognition device of the head frame positioning system may comprise a color recognition device, such as a color recognition sensor TCS230. The color recognition device can have the characteristics of high resolution, programmable color selection, output calibration, single power supply and the like. The color recognition device may be based on the principle of three primary color sensing to achieve color recognition. Specifically, the color recognition device may include a red filter, a blue filter, and a green filter, and the color recognition device may acquire the red light intensity, the blue light intensity, and the green light intensity of each frame image, respectively, through the red filter, the blue filter, and the green filter. The color recognition device may determine a color characteristic of each frame image based on the red light intensity, the blue light intensity, and the green light intensity, wherein the color characteristic may be a color characterization value of each frame image. According to the color characteristics of each frame image, the first frame positioning system can determine a test frame in each frame image, and then determine the first frame of the film according to the test frame. For example, the first frame positioning system may determine whether the current frame image is a test frame according to whether the color representation value matched with the current frame image is within a preset threshold range. If the color characterization value matched with the current frame image is in the preset threshold range, determining the current frame image as a test frame, and determining the next frame of the test frame as a film initial frame.
In another possible implementation, the optical feature recognition device includes a light transmittance recognition device, and the optical feature includes a light transmittance feature;
the method for sequentially acquiring the optical characteristics of each frame of image in the film through the optical characteristic identification device comprises the following steps:
sequentially acquiring the light transmittance characteristics of each frame of image in the film through a light transmittance identification device;
the method for determining the film first frame in each frame image according to the optical characteristics of each frame image comprises the following steps:
and determining the first frame of the film in each frame image according to the light transmittance characteristics of each frame image.
The first frame positioning system can also be used for positioning the test frame by distinguishing each frame image on the light transmittance characteristic so as to further determine the first frame of the film. The optical feature recognition device may include a light transmittance recognition device such as a 5mm groove fiber sensor PUE-4005 of BOJKE. The first frame positioning system can acquire the light transmittance characteristic of each frame image through the light transmittance identification device, wherein the light transmittance characteristic can be the light transmittance matched with each frame image, or can be the light intensity value transmitted by each frame image under the same incident light intensity. The transmittance characteristics of the test frame and the non-test frame are obviously different, so that the first frame positioning system can position the test frame according to the transmittance characteristics, and further determine the position of the first frame of the film. For example, the first frame positioning system may determine whether the current frame image is a test frame according to whether the light transmittance matched with the current frame image is within a preset light transmittance range. If the light transmittance of the current frame image is in the preset light transmittance range, determining the current frame image as a test frame, and determining the next frame of the test frame as a film initial frame.
In a preferred embodiment, the determining the film first frame in each frame image based on the optical characteristics of each frame image includes:
and determining the first frame of the film in each frame image according to the color characteristics and the light transmittance characteristics of each frame image.
In order to ensure the reliability of the first frame positioning of the film, the first frame positioning system can comprehensively judge the first frame of the film according to the color characteristics and the light transmittance characteristics of each frame of image. For example, if the color feature of the current frame image satisfies the color discrimination condition and the light transmittance feature satisfies the light transmittance discrimination condition, the current frame image is determined to be a test frame, and the next frame of the test frame is a film first frame.
On the basis of the above scheme, optionally, the determining the first frame of the film in each frame image according to the color feature and the light transmittance feature of each frame image includes:
determining a first judging result of a first frame of the film according to the color characteristics of each frame of image;
determining a second judging result of the first frame of the film according to the light transmittance characteristics of each frame of image;
and determining the first frame of the film according to the first judging result and the second judging result.
The first frame positioning system can also respectively carry out film first frame judgment on each frame of image according to the color characteristics and the light transmittance characteristics to respectively obtain a first judgment result and a second judgment result. If the first determination result is identical to the second determination result, the image frame indicated by the first determination result and the second determination result is determined to be the film roll first frame.
According to the technical scheme, optical characteristics of each frame of image in the film are sequentially acquired through an optical characteristic identification device in a first frame positioning system; and determining the first frame of the film in each frame image according to the optical characteristics of each frame image. The method solves the problem of high limitation of mechanically positioning the film initial frame, and can identify the film initial frame in an image processing mode, so that the positioning accuracy of the film initial frame is improved, and the reliability of data resource acquisition is ensured.
Example two
Fig. 3 is a flowchart of a film roll first frame determining method according to a second embodiment of the present invention, which is based on the above embodiment. As shown in fig. 3, the method includes:
s210, sequentially acquiring color characteristics of each frame of image in the film through a color identification device.
S220, comparing the color characteristics of the two adjacent frames of images in sequence, and determining a color characteristic comparison result.
In the scheme, the first frame positioning system can determine the target frame, namely the test frame, according to the color feature comparison result by sequentially comparing the color features of two adjacent frames of images without setting the color judgment condition for matching the test frame, and further determine the first frame of the film according to the target frame. Specifically, the color feature comparison result may be a color feature difference, such as a difference between color characterization values, of two adjacent frames of images.
And S230, if the colors of the two adjacent frame images are different according to the color feature comparison result, respectively taking the two adjacent frame images as a first candidate frame image and a second candidate frame image.
According to the color characteristic comparison result, the first frame positioning system can judge whether the colors of two adjacent frames of images are the same. Specifically, the first frame positioning system can determine whether the colors of two adjacent frames of images are the same according to whether the difference of the color characterization values is within a preset difference range. If the color characterization value difference is within the preset difference range, determining that the colors of the two adjacent frames of images are the same. If the color characterization value difference is not in the preset difference range, determining that the colors of the two adjacent frames of images are different.
If the colors of the two adjacent frames are different, the condition that one of the two frames is a target frame, namely a test frame, is indicated. The first frame positioning system can respectively judge the color characteristic comparison result of the first candidate frame image and the adjacent frame image of the first candidate frame image and the color characteristic comparison result of the adjacent frame image of the second candidate frame image and the adjacent frame image of the second candidate frame image by respectively taking two adjacent frame images as the first candidate frame image and the second candidate frame image.
S240, determining a color judgment result of the first candidate frame image according to the color characteristic comparison result of the first candidate frame image and the adjacent frame image of the first candidate frame image, and determining a color judgment result of the second candidate frame image according to the color characteristic comparison result of the second candidate frame image and the adjacent frame image of the second candidate frame image.
Wherein the color judgment result comprises the same color and different colors.
S250, determining a target frame according to the color judgment result of the first candidate frame image and the color judgment result of the second candidate frame image.
If it is determined that the color of the first candidate frame image is the same as that of the neighboring frame image of the first candidate frame image based on the color feature comparison result of the first candidate frame image and the neighboring frame image of the first candidate frame image, and it is determined that the color of the second candidate frame image is different from that of the neighboring frame image of the second candidate frame image based on the color feature comparison result of the neighboring frame image of the second candidate frame image, it is possible to determine the second candidate frame image as the target frame.
If it is determined that the colors of the first candidate frame image and the neighboring frame image of the first candidate frame image are different according to the color feature comparison result of the first candidate frame image and the neighboring frame image of the first candidate frame image, and it is determined that the colors of the second candidate frame image and the neighboring frame image of the second candidate frame image are the same according to the color feature comparison result of the second candidate frame image and the neighboring frame image of the second candidate frame image, the first candidate frame image may be determined as the target frame.
S260, determining the next frame of the target frame as the film roll first frame.
According to the technical scheme, color characteristics of each frame of image in the film are sequentially obtained through a color recognition device; and determining the first frame of the film in each frame image according to the color characteristics of each frame image. The method solves the problem of high limitation of mechanically positioning the film initial frame, and can identify the film initial frame in an image processing mode, so that the positioning accuracy of the film initial frame is improved, and the reliability of data resource acquisition is ensured.
Example III
Fig. 4 is a flowchart of a film roll first frame determining method according to a third embodiment of the present invention, which is based on the above embodiment. As shown in fig. 4, the method includes:
s310, sequentially acquiring the light transmittance characteristics of each frame of image in the film through a light transmittance identification device.
S320, comparing the light transmittance characteristics of the two adjacent frames of images in sequence, and determining a light transmittance characteristic comparison result.
In the scheme, the first frame positioning system can determine the target frame, namely the test frame, according to the light transmittance characteristic comparison result by sequentially comparing the light transmittance characteristics of two adjacent frames of images without setting the light transmittance judging condition matched with the test frame, and further determine the first frame of the film according to the target frame. Specifically, the result of the light transmittance characteristic comparison may be a difference in light transmittance characteristics of two adjacent frames of images, such as a difference in light transmittance.
And S330, if the light transmittance of the two adjacent frame images is determined to be different according to the light transmittance characteristic comparison result, respectively taking the two adjacent frame images as a first candidate frame image and a second candidate frame image.
According to the light transmittance characteristic comparison result, the first frame positioning system can judge whether the light transmittance of two adjacent frames of images is the same. Specifically, the first frame positioning system can determine whether the light transmittance of two adjacent frames of images is the same according to whether the light transmittance representation value difference is within a preset difference range. If the difference of the light transmittance representation values is within the preset difference range, determining that the light transmittance of two adjacent frames of images is the same. If the difference of the light transmittance representation values is not in the preset difference range, determining that the light transmittance of two adjacent frames of images is different.
If the light transmittance of two adjacent frames is different, it is indicated that one of the two frames is the target frame, namely the test frame. The first frame positioning system can respectively judge the light transmittance characteristic comparison result of the first candidate frame image and the adjacent frame image of the first candidate frame image and the light transmittance characteristic comparison result of the adjacent frame image of the second candidate frame image and the second candidate frame image by respectively taking two adjacent frame images as the first candidate frame image and the second candidate frame image.
S340, determining a light transmittance judging result of the first candidate frame image according to the light transmittance characteristic comparison result of the first candidate frame image and the adjacent frame image of the first candidate frame image, and determining a light transmittance judging result of the second candidate frame image according to the light transmittance characteristic comparison result of the second candidate frame image and the adjacent frame image of the second candidate frame image.
The light transmittance judging result comprises that the light transmittance is the same and the light transmittance is different.
S350, determining a target frame according to the light transmittance judging result of the first candidate frame image and the light transmittance judging result of the second candidate frame image.
If it is determined that the light transmittance of the first candidate frame image is the same as that of the neighboring frame image of the first candidate frame image according to the light transmittance characteristic comparison result of the first candidate frame image and the neighboring frame image of the first candidate frame image, and it is determined that the light transmittance of the second candidate frame image is different from that of the neighboring frame image of the second candidate frame image according to the light transmittance characteristic comparison result of the neighboring frame image of the second candidate frame image, it is possible to determine the second candidate frame image as the target frame.
If it is determined that the light transmittance of the first candidate frame image is different from that of the neighboring frame image of the first candidate frame image according to the light transmittance characteristic comparison result of the first candidate frame image and the neighboring frame image of the first candidate frame image, and it is determined that the light transmittance of the second candidate frame image is the same as that of the neighboring frame image of the second candidate frame image according to the light transmittance characteristic comparison result of the neighboring frame image of the second candidate frame image, the first candidate frame image may be determined as the target frame.
S360, determining the next frame of the target frame as a film roll first frame.
According to the technical scheme, the light transmittance characteristics of each frame of image in the film are sequentially obtained through the light transmittance identification device; and determining the first frame of the film in each frame image according to the light transmittance characteristics of each frame image. The method solves the problem of high limitation of mechanically positioning the film initial frame, and can identify the film initial frame in an image processing mode, so that the positioning accuracy of the film initial frame is improved, and the reliability of data resource acquisition is ensured.
Example IV
Fig. 5 is a schematic structural diagram of a film first frame determining apparatus according to a fourth embodiment of the present invention. The device is configured in a first frame positioning system, which includes an optical feature recognition device. As shown in fig. 5, the apparatus includes:
an optical feature acquisition module 410, configured to sequentially acquire optical features of each frame of image in the film through the optical feature recognition device;
the film roll first frame determining module 420 is configured to determine a film roll first frame in each frame image according to the optical characteristics of each frame image.
In one possible solution, the optical feature recognition device comprises a color recognition device; the optical features include color features;
the optical feature acquisition module 410 includes:
a color feature acquisition unit for sequentially acquiring color features of each frame of image in the film through the color recognition device;
the film roll first frame determination module 420 includes:
and the first film roll first frame determining unit is used for determining the film roll first frame in each frame image according to the color characteristics of each frame image.
On the basis of the above scheme, optionally, the first film first frame determining unit is specifically configured to:
sequentially comparing the color characteristics of two adjacent frames of images to determine a color characteristic comparison result;
if the color of the two adjacent frame images is different according to the color feature comparison result, respectively taking the two adjacent frame images as a first candidate frame image and a second candidate frame image;
determining a color judgment result of the first candidate frame image according to the color characteristic comparison result of the first candidate frame image and the adjacent frame image of the first candidate frame image, and determining a color judgment result of the second candidate frame image according to the color characteristic comparison result of the second candidate frame image and the adjacent frame image of the second candidate frame image; wherein the color judgment result comprises the same color and different colors;
determining a target frame according to the color judgment result of the first candidate frame image and the color judgment result of the second candidate frame image;
the next frame of the target frame is determined to be the film roll first frame.
In another possible implementation, the optical feature recognition device includes a light transmittance recognition device, and the optical feature includes a light transmittance feature;
the optical feature acquisition module 410 includes:
the light transmittance characteristic acquisition unit is used for sequentially acquiring the light transmittance characteristics of each frame of image in the film through the light transmittance identification device;
the film roll first frame determination module 420 includes:
and a second film roll first frame determining unit for determining a film roll first frame in each frame image based on the light transmittance characteristics of each frame image.
On the basis of the above scheme, optionally, the second film first frame determining unit is specifically configured to:
sequentially comparing the light transmittance characteristics of two adjacent frames of images to determine a light transmittance characteristic comparison result;
if the light transmittance of the two adjacent frame images is different according to the light transmittance characteristic comparison result, respectively taking the two adjacent frame images as a first candidate frame image and a second candidate frame image;
determining a light transmittance judging result of the first candidate frame image according to the light transmittance characteristic comparison result of the first candidate frame image and the adjacent frame image of the first candidate frame image, and determining a light transmittance judging result of the second candidate frame image according to the light transmittance characteristic comparison result of the second candidate frame image and the adjacent frame image of the second candidate frame image; the light transmittance judging result comprises that the light transmittance is the same and the light transmittance is different;
determining a target frame according to the light transmittance judging result of the first candidate frame image and the light transmittance judging result of the second candidate frame image;
the next frame of the target frame is determined to be the film roll first frame.
In this embodiment, optionally, the film roll first frame determining module 420 includes:
and a third film roll first frame determining unit for determining a film roll first frame in each frame image based on the color characteristics and the transmittance characteristics of each frame image.
On the basis of the above scheme, optionally, the third film first frame determining unit is specifically configured to:
determining a first judging result of a first frame of the film according to the color characteristics of each frame of image;
determining a second judging result of the first frame of the film according to the light transmittance characteristics of each frame of image;
and determining the first frame of the film according to the first judging result and the second judging result.
The film initial frame determining device provided by the embodiment of the invention can execute the film initial frame determining method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example five
Fig. 6 shows a schematic diagram of an electronic device 510 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 510 includes at least one processor 511, and a memory communicatively connected to the at least one processor 511, such as a Read Only Memory (ROM) 512, a Random Access Memory (RAM) 513, etc., in which the memory stores computer programs executable by the at least one processor, and the processor 511 may perform various suitable actions and processes according to the computer programs stored in the Read Only Memory (ROM) 512 or the computer programs loaded from the storage unit 518 into the Random Access Memory (RAM) 513. In the RAM 513, various programs and data required for the operation of the electronic device 510 can also be stored. The processor 511, the ROM 512, and the RAM 513 are connected to each other by a bus 514. An input/output (I/O) interface 515 is also connected to bus 514.
Various components in the electronic device 510 are connected to the I/O interface 515, including: an input unit 516 such as a keyboard, a mouse, etc.; an output unit 517 such as various types of displays, speakers, and the like; a storage unit 518 such as a magnetic disk, optical disk, etc.; and a communication unit 519 such as a network card, modem, wireless communication transceiver, or the like. The communication unit 519 allows the electronic device 510 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks.
The processor 511 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 511 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 511 performs the respective methods and processes described above, such as a film roll first frame determination method.
In some embodiments, the film roll first frame determination method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 518. In some embodiments, some or all of the computer program may be loaded and/or installed onto the electronic device 510 via the ROM 512 and/or the communication unit 519. When the computer program is loaded into RAM 513 and executed by processor 511, one or more steps of the film roll first frame determination method described above may be performed. Alternatively, in other embodiments, the processor 511 may be configured to perform the film roll first frame determination method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method of determining a first frame of film, the method being performed by a first frame positioning system, the first frame positioning system comprising an optical feature recognition device; the method comprises the following steps:
sequentially acquiring optical characteristics of each frame of image in the film through an optical characteristic identification device;
and determining the first frame of the film in each frame image according to the optical characteristics of each frame image.
2. The method of claim 1, wherein the optical feature recognition device comprises a color recognition device; the optical features include color features;
the method for sequentially acquiring the optical characteristics of each frame of image in the film through the optical characteristic identification device comprises the following steps:
sequentially acquiring color characteristics of each frame of image in the film through a color identification device;
the method for determining the film first frame in each frame image according to the optical characteristics of each frame image comprises the following steps:
and determining the first frame of the film in each frame image according to the color characteristics of each frame image.
3. The method of claim 2, wherein determining the first frame of film in each frame image based on the color characteristics of each frame image comprises:
sequentially comparing the color characteristics of two adjacent frames of images to determine a color characteristic comparison result;
if the color of the two adjacent frame images is different according to the color feature comparison result, respectively taking the two adjacent frame images as a first candidate frame image and a second candidate frame image;
determining a color judgment result of the first candidate frame image according to the color characteristic comparison result of the first candidate frame image and the adjacent frame image of the first candidate frame image, and determining a color judgment result of the second candidate frame image according to the color characteristic comparison result of the second candidate frame image and the adjacent frame image of the second candidate frame image; wherein the color judgment result comprises the same color and different colors;
determining a target frame according to the color judgment result of the first candidate frame image and the color judgment result of the second candidate frame image;
the next frame of the target frame is determined to be the film roll first frame.
4. The method of claim 1, wherein the optical feature recognition device comprises a light transmittance recognition device, and the optical feature comprises a light transmittance feature;
the method for sequentially acquiring the optical characteristics of each frame of image in the film through the optical characteristic identification device comprises the following steps:
sequentially acquiring the light transmittance characteristics of each frame of image in the film through a light transmittance identification device;
the method for determining the film first frame in each frame image according to the optical characteristics of each frame image comprises the following steps:
and determining the first frame of the film in each frame image according to the light transmittance characteristics of each frame image.
5. The method of claim 4, wherein determining the first frame of film in each frame image based on the light transmittance characteristics of each frame image comprises:
sequentially comparing the light transmittance characteristics of two adjacent frames of images to determine a light transmittance characteristic comparison result;
if the light transmittance of the two adjacent frame images is different according to the light transmittance characteristic comparison result, respectively taking the two adjacent frame images as a first candidate frame image and a second candidate frame image;
determining a light transmittance judging result of the first candidate frame image according to the light transmittance characteristic comparison result of the first candidate frame image and the adjacent frame image of the first candidate frame image, and determining a light transmittance judging result of the second candidate frame image according to the light transmittance characteristic comparison result of the second candidate frame image and the adjacent frame image of the second candidate frame image; the light transmittance judging result comprises that the light transmittance is the same and the light transmittance is different;
determining a target frame according to the light transmittance judging result of the first candidate frame image and the light transmittance judging result of the second candidate frame image;
the next frame of the target frame is determined to be the film roll first frame.
6. The method of claim 2 or 4, wherein determining the first frame of film in each frame of the image based on the optical characteristics of each frame of the image comprises:
and determining the first frame of the film in each frame image according to the color characteristics and the light transmittance characteristics of each frame image.
7. The method of claim 6, wherein determining the film first frame in each frame image based on the color characteristics and the light transmittance characteristics of each frame image comprises:
determining a first judging result of a first frame of the film according to the color characteristics of each frame of image;
determining a second judging result of the first frame of the film according to the light transmittance characteristics of each frame of image;
and determining the first frame of the film according to the first judging result and the second judging result.
8. A film first frame determining apparatus, wherein said apparatus is configured in a first frame positioning system comprising an optical feature recognition device; the device comprises:
the optical characteristic acquisition module is used for sequentially acquiring the optical characteristics of each frame of image in the film through the optical characteristic identification device;
and the film roll first frame determining module is used for determining the film roll first frame in each frame image according to the optical characteristics of each frame image.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the film roll first frame determination method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the film roll first frame determination method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310424498.3A CN116433926A (en) | 2023-04-19 | 2023-04-19 | Film first frame determining method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310424498.3A CN116433926A (en) | 2023-04-19 | 2023-04-19 | Film first frame determining method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116433926A true CN116433926A (en) | 2023-07-14 |
Family
ID=87087016
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310424498.3A Pending CN116433926A (en) | 2023-04-19 | 2023-04-19 | Film first frame determining method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116433926A (en) |
-
2023
- 2023-04-19 CN CN202310424498.3A patent/CN116433926A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112581463B (en) | Image defect detection method and device, electronic equipment, storage medium and product | |
CN112949767B (en) | Sample image increment, image detection model training and image detection method | |
CN115205291B (en) | Circuit board detection method, device, equipment and medium | |
CN116310903A (en) | Method and device for identifying fault type of photovoltaic module and electronic equipment | |
CN115272291A (en) | Film-sticking defect detection method, device, equipment and storage medium | |
CN116596854A (en) | Equipment defect identification method, device, equipment and medium | |
CN115471476A (en) | Method, device, equipment and medium for detecting component defects | |
CN115272290A (en) | Defect detection method and device, electronic equipment and storage medium | |
CN112990042B (en) | Image annotation auditing method, device, equipment, storage medium and program product | |
CN117557777A (en) | Sample image determining method and device, electronic equipment and storage medium | |
CN115205163B (en) | Method, device and equipment for processing identification image and storage medium | |
CN112991308B (en) | Image quality determining method and device, electronic equipment and medium | |
CN116433926A (en) | Film first frame determining method and device, electronic equipment and storage medium | |
CN117078708A (en) | Training method, device, equipment, medium and product for image detection and model | |
CN116668843A (en) | Shooting state switching method and device, electronic equipment and storage medium | |
CN113628192B (en) | Image blur detection method, apparatus, device, storage medium, and program product | |
CN116823924B (en) | Determination method and device for defect area, electronic equipment and storage medium | |
CN113643257B (en) | Image noise detection method, device, equipment, storage medium and program product | |
CN116503407B (en) | Method and device for detecting foreign object region in image and electronic equipment | |
CN115542100B (en) | Insulator fault detection method, device, equipment and medium | |
CN117495742B (en) | Method, device, equipment and medium for transferring image dyeing | |
CN118397354A (en) | Ink color sorting method, device, electronic equipment and storage medium | |
CN116309586A (en) | Defect detection method, device, equipment and medium based on convolutional neural network | |
CN117611529A (en) | Mobile computer shell detection method, device, equipment and storage medium | |
CN114757845A (en) | Light ray adjusting method and device based on face recognition, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |