A film first frame determination method and device, electronic equipment and storage medium
By acquiring the optical features of each frame of the film using an optical feature recognition device, and combining color and transmittance features to identify the first frame of the film, the problem of deviation in manually locating the first frame of the film is solved, achieving high-precision positioning of the first frame of the film and reliable acquisition of data resources.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2026-03-24
AI Technical Summary
In existing technologies, manual positioning of the first frame of film is prone to operational errors, which can cause the film to deviate in position during the tightening process, affecting the reliability of data resource acquisition.
The optical features of each frame of the film are obtained by an optical feature recognition device. The first frame of the film is identified by color and transmittance features. The first frame of the film is determined by combining image processing technology.
It improves the accuracy of film first frame positioning and the reliability of data resource acquisition, while reducing the limitations of mechanical positioning.
Smart Images

Figure CN116433926B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of image processing, and in particular to a film first frame determination method and device, electronic equipment and storage medium. BACKGROUND
[0002] The digital film technology adopts a new film application mode of "number-film-number", that is, after the data resources to be saved are encoded, high-density encoded images are generated and printed on the film. The encoded images on the film are decoded by optical equipment to obtain the data resources.
[0003] To obtain the encoded images on the film by optical equipment, the first frame of information frame needs to be found. In the prior art, the film is usually manually installed by artificial positioning, and the first frame is installed at a fixed position. However, the artificial positioning is prone to operation deviation, and the installed film is also prone to position deviation during tightening. Therefore, there is an urgent need for a scheme for determining the first frame position of the film. SUMMARY
[0004] The present application provides a film first frame determination method and device, electronic equipment and storage medium to solve the problem of large limitation of mechanical positioning of the first frame of the film. The first frame of the film can be recognized by image processing, which improves the positioning accuracy of the first frame of the film and ensures the reliability of data resource acquisition.
[0005] According to an aspect of the present application, a film first frame determination method is provided, which is executed by a first frame positioning system, and the first frame positioning system comprises optical feature recognition devices; the method comprises:
[0006] optical features of each frame of image in the film are sequentially obtained by the optical feature recognition devices;
[0007] the first frame of the film is determined in each frame of image according to the optical features of each frame of image.
[0008] According to another aspect of the present application, a film first frame determination device is provided, which is configured in a first frame positioning system, and the first frame positioning system comprises optical feature recognition devices; the device comprises:
[0009] an optical feature acquisition module, configured to sequentially obtain optical features of each frame of image in the film by the optical feature recognition devices;
[0010] a film first frame determination module, configured to determine the first frame of the film in each frame of image according to the optical features of each frame of image.
[0011] According to another aspect of the present application, an electronic equipment is provided, which comprises:
[0012] at least one processor; and
[0013] a memory connected with the at least one processor in communication; wherein,
[0014] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the film first frame determination method according to any one of the embodiments of the present application.
[0015] According to another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions for enabling a processor to implement the film first frame determination method according to any one of the embodiments of the present application when executed by the processor.
[0016] The technical scheme of the embodiments of the present application acquires optical features of each frame of images in the film by the optical feature recognition device in the first frame positioning system in sequence; and determines the film first frame in each frame of images according to the optical features of each frame of images. The scheme solves the problem of large limitation of mechanical positioning of the film first frame, and can recognize the film first frame by image processing, thereby improving the positioning accuracy of the film first frame and ensuring the reliability of data resource acquisition.
[0017] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0019] Figure 1 is a flowchart of a film first frame determination method according to the first embodiment of the present application;
[0020] Figure 2 is a color schematic diagram of each frame of film according to the film provided by the present application;
[0021] Figure 3 is a flowchart of a film first frame determination method according to the second embodiment of the present application;
[0022] Figure 4 is a flowchart of a film first frame determination method according to the third embodiment of the present application;
[0023] Figure 5is a structural schematic diagram of a film first frame determination device provided according to an embodiment four of the present application;
[0024] Figure 6 is a structural schematic diagram of an electronic device implementing a film first frame determination method of the present application. DETAILED DESCRIPTION
[0025] In order for those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, device, product or apparatus that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or apparatus. The acquisition, storage, use, processing and the like of data in the technical solutions of the present application all comply with the relevant provisions of national laws and regulations.
[0027] Embodiment one
[0028] Figure 1 A flowchart of a film first frame determination method is provided for the embodiment one of the present application. The present embodiment can be applicable to a film first frame positioning scenario. The method can be executed by a film first frame determination device. The device can be realized in the form of hardware and / or software. The device can be configured in an electronic device. As shown in the figure, the method comprises the following steps. Figure 1
[0029] S110, sequentially acquiring optical features of each frame image in the film by an optical feature recognition device.
[0030] The scheme can be executed by a first frame positioning system, which can include an optical feature recognizer, a processor, and the like. The optical feature recognizer can be used to recognize optical features of each frame of images in the film, which can include color, transmittance, reflectivity, and the like. Through the optical feature recognizer, the first frame positioning system can obtain the optical features of each frame of images in the film.
[0031] In S120, the first frame of the film is determined from the optical features of each frame of images.
[0032] It can be understood that the test frame exists in the film for imaging test of the film. Figure 2 is a color diagram of each frame of film in the film according to an embodiment of the present application. As shown in Figure 2 The color of the test frame film is obviously different from that of the non-test frame film in the film, and each frame of images also has differences in optical features such as color and transmittance. Therefore, the test frame can be recognized according to the optical features of each frame of images, and the first frame of the film can be determined according to the test frame.
[0033] In a feasible scheme, the optical feature recognizer includes a color recognizer; and the optical features include color features.
[0034] The optical features of each frame of images in the film are sequentially obtained by the optical feature recognizer, including:
[0035] The color features of each frame of images in the film are sequentially obtained by the color recognizer.
[0036] The first frame of the film is determined from the color features of each frame of images.
[0037] The first frame of the film is determined from the color features of each frame of images.
[0038] The optical feature recognition device of the first frame positioning system can include 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 and output scaling, and single power supply. The color recognition device can be based on the principle of three primary color sensing to realize color recognition. Specifically, the color recognition device can include a red filter, a blue filter, and a green filter. The color recognition device can obtain the red light intensity, the blue light intensity, and the green light intensity of each frame of image through the red filter, the blue filter, and the green filter, respectively. According to the red light intensity, the blue light intensity, and the green light intensity, the color recognition device can determine the color feature of each frame of image, wherein the color feature can be a color representation value of each frame of image. According to the color feature of each frame of image, the first frame positioning system can determine a test frame in each frame of image, and then determine the first frame of film according to the test frame. For example, the first frame positioning system can determine whether the current frame of image is a test frame according to whether the color representation value matched by the current frame of image is within a preset threshold range. If the color representation value matched by the current frame of image is within the preset threshold range, the current frame of image is determined to be a test frame, and the next frame of the test frame is the first frame of film.
[0039] In another possible implementation, the optical feature recognition device includes a light transmittance recognition device, and the optical feature includes a light transmittance feature.
[0040] The sequentially obtaining, by the optical feature recognition device, the optical feature of each frame of image in the film includes:
[0041] The sequentially obtaining, by the light transmittance recognition device, the light transmittance feature of each frame of image in the film includes:
[0042] The determining, according to the optical feature of each frame of image, the first frame of film in each frame of image includes:
[0043] The determining, according to the light transmittance feature of each frame of image, the first frame of film in each frame of image.
[0044] The first frame positioning system can also distinguish the transmittance characteristics of each frame of image, position the test frame, and further determine the first frame of the film. The optical characteristic recognition device can include a transmittance recognition device, such as a 5mm slot optical fiber sensor PUE-4005 of BOJKE. Through the transmittance recognition device, the first frame positioning system can obtain the transmittance characteristics of each frame of image, where the transmittance characteristics can be the matching transmittance of each frame of image, or the light intensity value transmitted by each frame of image under the same incident light intensity. The transmittance characteristics of the test frame and the non-test frame are obviously different, and therefore, 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 can determine whether the current frame of image is the test frame according to whether the matching transmittance of the current frame of image is within a preset transmittance range. If the matching transmittance of the current frame of image is within the preset transmittance range, the current frame of image is determined as the test frame, and the next frame of the test frame is the first frame of the film.
[0045] In a preferred scheme, the determining the first frame of the film in each frame of image according to the optical characteristics of each frame of image comprises:
[0046] The first frame of the film is determined in each frame of image according to the color characteristics and the transmittance characteristics of each frame of image.
[0047] In order to ensure the reliability of the positioning of the first frame of the film, the first frame positioning system can comprehensively determine the first frame of the film according to the color characteristics and the transmittance characteristics of each frame of image. For example, if the color characteristics of the current frame of image satisfy the color discrimination condition, and the transmittance characteristics satisfy the transmittance discrimination condition, the current frame of image is determined as the test frame, and the next frame of the test frame is the first frame of the film.
[0048] On the basis of the above scheme, optionally, the determining the first frame of the film in each frame of image according to the color characteristics and the transmittance characteristics of each frame of image comprises:
[0049] The first determination result of the first frame of the film is determined according to the color characteristics of each frame of image;
[0050] The second determination result of the first frame of the film is determined according to the transmittance characteristics of each frame of image;
[0051] The first frame of the film is determined according to the first determination result and the second determination result.
[0052] The first frame positioning system can also respectively determine the first frame of the film in each frame of image according to the color characteristics and the transmittance characteristics, and respectively obtain the first determination result and the second determination result. If the first determination result is consistent with the second determination result, the image frame indicated by the first determination result and the second determination result is determined as the first frame of the film.
[0053] The technical scheme acquires optical characteristics of each frame of images in the film through optical characteristic recognition devices in the first frame positioning system; and determines the first frame of the film in each frame of images according to the optical characteristics of each frame of images. The scheme solves the problem of large limitation of mechanical positioning of the first frame of the film, and can recognize the first frame of the film through image processing, thereby improving the positioning accuracy of the first frame of the film and ensuring the reliability of data resource acquisition.
[0054] Embodiment two
[0055] Figure 3 A flowchart of a film first frame determination method is provided for the second embodiment of the application, and the embodiment is refined based on the above-mentioned embodiment. As shown in the figure, the method comprises: Figure 3
[0056] S210, acquiring color characteristics of each frame of images in the film through color recognition devices.
[0057] S220, comparing the color characteristics of adjacent two frames of images in sequence to determine a color characteristic comparison result.
[0058] In the scheme, the first frame positioning system can not need to set color determination conditions for matching test frames, and can compare the color characteristics of adjacent two frames of images in sequence, determine a target frame, i.e. a test frame, according to the color characteristic comparison result, and then determine the first frame of the film according to the target frame. Specifically, the color characteristic comparison result can be a color characteristic difference, such as a color representation value difference, between adjacent two frames of images.
[0059] S230, if it is determined according to the color characteristic comparison result that the colors of adjacent two frames of images are different, then the adjacent two frames of images are taken as a first candidate frame of image and a second candidate frame of image respectively.
[0060] According to the color characteristic comparison result, the first frame positioning system can determine whether the colors of adjacent two frames of images are the same. Specifically, the first frame positioning system can determine whether the colors of adjacent two frames of images are the same according to whether the color representation value difference is within a preset difference range. If the color representation value difference is within the preset difference range, it is determined that the colors of adjacent two frames of images are the same. If the color representation value difference is not within the preset difference range, it is determined that the colors of adjacent two frames of images are different.
[0061] If the colors of adjacent two frames of images are different, it means that one of the two frames is a target frame, i.e. a test frame. The first frame positioning system can take the adjacent two frames of images as a first candidate frame of image and a second candidate frame of image respectively, and determine the color characteristic comparison result of the first candidate frame of image and the adjacent frame of image of the first candidate frame of image, and the color characteristic comparison result of the second candidate frame of image and the adjacent frame of image of the second candidate frame of image.
[0062] S240, determining a color judgment result of the first candidate frame image according to the color feature 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 feature comparison result of the second candidate frame image and the adjacent frame image of the second candidate frame image.
[0063] The color judgment result includes color same and color different.
[0064] 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.
[0065] If it is determined that the color of the first candidate frame image is the same as that of the adjacent frame image of the first candidate frame image according to the color feature comparison result of the first candidate frame image and the adjacent 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 adjacent frame image of the second candidate frame image according to the color feature comparison result of the second candidate frame image and the adjacent frame image of the second candidate frame image, the second candidate frame image can be determined as the target frame.
[0066] If it is determined that the color of the first candidate frame image is different from that of the adjacent frame image of the first candidate frame image according to the color feature comparison result of the first candidate frame image and the adjacent frame image of the first candidate frame image, and it is determined that the color of the second candidate frame image is the same as that of the adjacent frame image of the second candidate frame image according to the color feature comparison result of the second candidate frame image and the adjacent frame image of the second candidate frame image, the first candidate frame image can be determined as the target frame.
[0067] S260, determining a next frame of the target frame as a film first frame.
[0068] The technical solution obtains the color features of each frame image in the film through a color recognition device in sequence, and determines the film first frame in each frame image according to the color features of each frame image. The solution solves the problem of large limitation of mechanical positioning of the film first frame, and can recognize the film first frame through image processing, thereby improving the positioning accuracy of the film first frame and ensuring the reliability of data resource acquisition.
[0069] Embodiment three
[0070] Figure 4 A flowchart of a film first frame determination method is provided for the third embodiment of the application, and the embodiment is refined on the basis of the above-mentioned embodiments. As shown in the figure, the method comprises: Figure 4
[0071] S310, obtaining the light transmittance features of each frame image in the film through a light transmittance recognition device in sequence.
[0072] S320, compare the light transmittance features of the two adjacent frames of images in sequence to determine a light transmittance feature comparison result.
[0073] In the present solution, the first frame positioning system can not need to set the light transmittance determination condition for matching the test frame, but compare the light transmittance features of the two adjacent frames of images in sequence, determine the target frame, i.e. the test frame, according to the light transmittance feature comparison result, and then determine the first frame of the film according to the target frame. Specifically, the light transmittance feature comparison result can be the difference of the light transmittance features of the two adjacent frames of images, for example, the difference of the light transmittance.
[0074] S330, if it is determined according to the light transmittance feature comparison result that the light transmittance of the two adjacent frames of images is different, then the two adjacent frames of images are respectively taken as the first candidate frame of image and the second candidate frame of image.
[0075] According to the light transmittance feature comparison result, the first frame positioning system can determine whether the light transmittance of the two adjacent frames of images is the same. Specifically, the first frame positioning system can determine whether the light transmittance of the two adjacent frames of images is the same according to whether the difference of the light transmittance characteristic values is within the preset difference range. If the difference of the light transmittance characteristic values is within the preset difference range, it is determined that the light transmittance of the two adjacent frames of images is the same. If the difference of the light transmittance characteristic values is not within the preset difference range, it is determined that the light transmittance of the two adjacent frames of images is different.
[0076] If the light transmittance of the two adjacent frames of images is different, it means that one of the two frames is the target frame, i.e. the test frame. The first frame positioning system can take the two adjacent frames of images as the first candidate frame of image and the second candidate frame of image respectively, and determine the light transmittance feature comparison result of the first candidate frame of image and the adjacent frame of image of the first candidate frame of image, and the light transmittance feature comparison result of the second candidate frame of image and the adjacent frame of image of the second candidate frame of image.
[0077] S340, determine the light transmittance determination result of the first candidate frame of image according to the light transmittance feature comparison result of the first candidate frame of image and the adjacent frame of image of the first candidate frame of image, and determine the light transmittance determination result of the second candidate frame of image according to the light transmittance feature comparison result of the second candidate frame of image and the adjacent frame of image of the second candidate frame of image.
[0078] The light transmittance determination result includes the same light transmittance and the different light transmittance.
[0079] S350, determine the target frame according to the light transmittance determination result of the first candidate frame of image and the light transmittance determination result of the second candidate frame of image.
[0080] If it is determined according to the transmittance characteristic comparison result of the first candidate frame image and the adjacent frame image of the first candidate frame image that the transmittance of the first candidate frame image is the same as that of the adjacent frame image of the first candidate frame image, and it is determined according to the transmittance characteristic comparison result of the second candidate frame image and the adjacent frame image of the second candidate frame image that the transmittance of the second candidate frame image is different from that of the adjacent frame image of the second candidate frame image, then the second candidate frame image can be determined as the target frame.
[0081] If it is determined according to the transmittance characteristic comparison result of the first candidate frame image and the adjacent frame image of the first candidate frame image that the transmittance of the first candidate frame image is different from that of the adjacent frame image of the first candidate frame image, and it is determined according to the transmittance characteristic comparison result of the second candidate frame image and the adjacent frame image of the second candidate frame image that the transmittance of the second candidate frame image is the same as that of the adjacent frame image of the second candidate frame image, then the first candidate frame image can be determined as the target frame.
[0082] S360, determining the next frame of the target frame as the film first frame.
[0083] The technical scheme determines the first frame of the film according to the transmittance characteristics of the frames of the film, and solves the problem of large limitation of mechanical positioning of the first frame of the film, and can identify the first frame of the film through image processing, thereby improving the positioning accuracy of the first frame of the film and ensuring the reliability of data resource acquisition.
[0084] Embodiment Four
[0085] Figure 5 A structure diagram of a film first frame determination device provided for the fourth embodiment of the application. The device is configured in a first frame positioning system, and the first frame positioning system comprises optical feature recognition devices. As shown in the figure, the device comprises: Figure 5
[0086] An optical feature acquisition module 410 is configured to acquire the optical features of the frames of the film through the optical feature recognition devices in sequence.
[0087] A film first frame determination module 420 is configured to determine the first frame of the film among the frames according to the optical features of the frames.
[0088] In a feasible scheme, the optical feature recognition devices comprise color recognition devices, and the optical features comprise color features.
[0089] The optical feature acquisition module 410 comprises:
[0090] A color feature acquisition unit is configured to acquire the color features of the frames of the film through the color recognition devices in sequence.
[0091] The film first frame determination module 420 comprises:
[0092] The first film first frame determination unit is configured to determine the film first frame from the color features of the image frames.
[0093] On the basis of the above scheme, the first film first frame determination unit is specifically configured to:
[0094] The color features of adjacent two image frames are compared in sequence to determine a color feature comparison result.
[0095] If the color features of adjacent two image frames are determined to be different according to the color feature comparison result, the adjacent two image frames are determined as a first candidate frame image and a second candidate frame image, respectively.
[0096] The color judgment result of the first candidate frame image is determined according to the color feature comparison result of the first candidate frame image and the adjacent image frame of the first candidate frame image, and the color judgment result of the second candidate frame image is determined according to the color feature comparison result of the second candidate frame image and the adjacent image frame of the second candidate frame image; wherein the color judgment result comprises color same and color different.
[0097] The target frame is determined according to the color judgment result of the first candidate frame image and the color judgment result of the second candidate frame image.
[0098] The next frame of the target frame is determined as the film first frame.
[0099] In another possible scheme, the optical feature recognition device comprises a light transmittance recognition device, and the optical feature comprises a light transmittance feature.
[0100] The optical feature acquisition module 410 comprises:
[0101] The light transmittance feature acquisition unit is configured to acquire the light transmittance features of the image frames in the film in sequence by the light transmittance recognition device.
[0102] The film first frame determination module 420 comprises:
[0103] The second film first frame determination unit is configured to determine the film first frame from the light transmittance features of the image frames.
[0104] On the basis of the above scheme, the second film first frame determination unit is specifically configured to:
[0105] The light transmittance features of adjacent two image frames are compared in sequence to determine a light transmittance feature comparison result.
[0106] If it is determined according to the comparison result of the transmittance characteristics that the transmittance of the two adjacent frames of images is different, the two adjacent frames of images are respectively taken as a first candidate frame of image and a second candidate frame of image;
[0107] determining a transmittance judgment result of the first candidate frame of image according to a comparison result of the transmittance characteristics of the first candidate frame of image and an adjacent frame of image of the first candidate frame of image, and determining a transmittance judgment result of the second candidate frame of image according to a comparison result of the transmittance characteristics of the second candidate frame of image and an adjacent frame of image of the second candidate frame of image; wherein the transmittance judgment result comprises the same transmittance and the different transmittance;
[0108] determining the target frame according to the transmittance judgment result of the first candidate frame of image and the transmittance judgment result of the second candidate frame of image;
[0109] determining a next frame of the target frame as the first frame of the film.
[0110] In the scheme, optionally, the first frame of film determination module 420 comprises:
[0111] a third first frame of film determination unit, configured to determine the first frame of film from the frames of images according to the color characteristics and the transmittance characteristics of the frames of images.
[0112] On the basis of the above scheme, optionally, the third first frame of film determination unit is specifically configured to:
[0113] determine a first determination result of the first frame of film according to the color characteristics of the frames of images;
[0114] determine a second determination result of the first frame of film according to the transmittance characteristics of the frames of images;
[0115] determine the first frame of film according to the first determination result and the second determination result.
[0116] The first frame of film determination device provided by the embodiment of the application can execute the first frame of film determination method provided by any embodiment of the application, and has the corresponding function modules and beneficial effects of the execution method.
[0117] Embodiment five
[0118] Figure 6A structural diagram of an electronic device 510 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application described and / or claimed in this document.
[0119] As shown in Figure 6 The electronic device 510 includes at least one processor 511, and a memory, such as a read-only memory (ROM) 512, a random access memory (RAM) 513, etc., connected to the at least one processor 511, where the memory stores computer programs executable by the at least one processor. The processor 511 can perform various appropriate actions and processes according to the computer programs stored in the read-only memory (ROM) 512 or loaded into the random access memory (RAM) 513 from the storage unit 518. 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 through a bus 514. An input / output (I / O) interface 515 is also connected to the bus 514.
[0120] 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, a speaker, etc., a storage unit 518, such as a magnetic disk, an optical disk, etc., and a communication unit 519, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 519 allows the electronic device 510 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0121] The processor 511 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the processor 511 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 511 performs various methods and processes described above, such as the film first frame determination method.
[0122] In some embodiments, the film first frame determination method can be implemented as a computer program tangibly embodied in a computer readable storage medium, e.g., storage unit 518. In some embodiments, parts or all of the computer program can be loaded and / or installed onto electronic device 510 via, e.g., ROM 512 and / or communication unit 519. When the computer program is loaded onto RAM 513 and executed by processor 511, one or more steps of the film first frame determination method described above can be performed. Alternatively, in other embodiments, processor 511 can be configured to perform the film first frame determination method by other means, e.g., with the aid of firmware.
[0123] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, specially designed application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0124] Computer programs used to implement the methods of the application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed by the processor of the machine, implements the functions / acts specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0125] In the context of the present application, a computer-readable storage medium can 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. A computer-readable storage medium can 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, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, 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.
[0126] 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 the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0127] The systems and techniques described here can be implemented in a computing system that includes a back end 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 back end, 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 a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0128] The computing system can include clients and servers. A client and server are generally 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 known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0129] It should be understood that the various forms of flow shown above can be reordered, added to, or have steps deleted. For example, the steps described in the present application can be performed in parallel, in series, or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, and this is not limited herein.
[0130] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining the first frame of a film roll, characterized in that, The method is executed by a first-frame localization system, which includes an optical feature recognition device; the method includes: The optical features of each frame of the film are sequentially acquired using an optical feature recognition device. Based on the optical characteristics of each frame, the first frame of the film is determined in each frame. Wherein, the optical feature recognition device includes a color recognition device; the optical feature includes a color feature; the step of sequentially acquiring the optical features of each frame of the film through the optical feature recognition device includes: The color features of each frame in the film are sequentially acquired using a color recognition device; The step of determining the first frame of the film in each frame based on the optical characteristics of each frame includes: Based on the color characteristics of each frame, the first frame of the film is determined in each frame. The step of determining the first frame of the film roll in each frame image based on the color characteristics of each frame image includes: The color features of two adjacent frames are compared sequentially to determine the color feature comparison result. If the color features are compared and it is determined that the colors of two adjacent frames are different, then the two adjacent frames are used as the first candidate frame image and the second candidate frame image, respectively. The color judgment result of the first candidate frame image is determined based on the comparison results of the color features between the first candidate frame image and its adjacent frame images; and the color judgment result of the second candidate frame image is determined based on the comparison results of the color features between the second candidate frame image and its adjacent frame images; wherein, the color judgment result includes the same color and different colors; The target frame is determined based on the color judgment results of the first candidate frame image and the color judgment results of the second candidate frame image; The next frame after the target frame is designated as the first frame of the film.
2. A method for determining the first frame of a film roll, characterized in that, The method is executed by a first-frame localization system, which includes an optical feature recognition device; the method includes: The optical features of each frame of the film are sequentially acquired using an optical feature recognition device. Based on the optical characteristics of each frame, the first frame of the film is determined in each frame. The optical feature recognition device includes a transmittance recognition device, and the optical feature includes a transmittance feature; The step of sequentially acquiring the optical features of each frame of the film using an optical feature recognition device includes: The transmittance characteristics of each frame in the film are obtained sequentially by a transmittance recognition device. The step of determining the first frame of the film in each frame based on the optical characteristics of each frame includes: Based on the transmittance characteristics of each frame, the first frame of the film is determined in each frame.
3. The method according to claim 2, characterized in that, The step of determining the first frame of the film roll in each frame image based on the transmittance characteristics of each frame image includes: The transmittance features of two adjacent frames are compared sequentially to determine the transmittance feature comparison result; If the transmittance of two adjacent frames is determined to be different based on the transmittance feature comparison results, then the two adjacent frames will be used as the first candidate frame image and the second candidate frame image, respectively. Based on the comparison results of the transmittance characteristics between the first candidate frame image and its adjacent frame images, the transmittance judgment result of the first candidate frame image is determined; and based on the comparison results of the transmittance characteristics between the second candidate frame image and its adjacent frame images, the transmittance judgment result of the second candidate frame image is determined; wherein, the transmittance judgment result includes the same transmittance and different transmittance. The target frame is determined based on the transmittance judgment results of the first candidate frame image and the transmittance judgment results of the second candidate frame image. The next frame after the target frame is designated as the first frame of the film.
4. The method according to claim 2, characterized in that, The optical feature recognition device further includes a color recognition device; the optical feature also includes a color feature; The step of determining the first frame of the film in each frame based on the optical characteristics of each frame includes: Based on the color and transmittance characteristics of each frame, the first frame of the film is determined in each frame.
5. The method according to claim 4, characterized in that, The step of determining the first frame of the film roll in each frame image based on the color and transmittance characteristics of each frame image includes: Based on the color characteristics of each frame, determine the first judgment result of the first frame of the film; Based on the transmittance characteristics of each frame, the second determination result of the first frame of the film is determined; Based on the first and second determination results, the first frame of the film is determined.
6. A film roll first frame determination device, characterized in that, The device is configured in the first-frame positioning system, which includes an optical feature recognition device; the device includes: The optical feature acquisition module is used to sequentially acquire the optical features of each frame of the film using an optical feature recognition device. The film first frame determination module is used to determine the first frame of the film in each frame image based on the optical characteristics of each frame image; Wherein, the optical feature recognition device includes a color recognition device; the optical feature includes a color feature; the optical feature acquisition module includes: The color feature acquisition unit is used to sequentially acquire the color features of each frame of the film using a color recognition device. The film first frame determination module includes: The first film roll first frame determination unit is used to determine the first film roll frame in each frame image based on the color characteristics of each frame image. The first frame determination unit of the first film roll is specifically used for: The color features of two adjacent frames are compared sequentially to determine the color feature comparison result. If the color features are compared and it is determined that the colors of two adjacent frames are different, then the two adjacent frames are used as the first candidate frame image and the second candidate frame image, respectively. The color judgment result of the first candidate frame image is determined based on the comparison results of the color features between the first candidate frame image and its adjacent frame images; and the color judgment result of the second candidate frame image is determined based on the comparison results of the color features between the second candidate frame image and its adjacent frame images; wherein, the color judgment result includes the same color and different colors; The target frame is determined based on the color judgment results of the first candidate frame image and the color judgment results of the second candidate frame image; The next frame after the target frame is designated as the first frame of the film.
7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, which enables the at least one processor to perform the film first frame determination method according to any one of claims 1 or 2-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the film first frame determination method according to any one of claims 1 or 2-5.
Citation Information
Patent Citations
Real time frame detection in a film scanner
US20060098228A1