Search

CN-115883960-B - Program loading method, program loading device, camera, image processing system and storage medium

CN115883960BCN 115883960 BCN115883960 BCN 115883960BCN-115883960-B

Abstract

The embodiment of the application provides a program loading method, a program loading device, a program loading camera, an image processing system and a storage medium, and relates to the technical field of machine vision. The method comprises the steps of obtaining state signals representing working states of a plurality of different types of light sources, determining the light source which is in the working state currently in the plurality of different types of light sources based on the state signals, and loading an image processing program corresponding to the light source which is in the working state currently. Therefore, the user operation can be simplified, the service efficiency is improved, and the labor cost is reduced.

Inventors

  • YU HAO
  • ZHANG SHANLING

Assignees

  • 杭州海康机器人股份有限公司

Dates

Publication Date
20260505
Application Date
20221208

Claims (9)

  1. 1. The program loading method is applied to electronic equipment provided with an ADC digital-to-analog conversion sampling module, wherein the electronic equipment is connected with a plurality of different types of light sources through a hardware circuit, the ADC sampling module is used for collecting pressure drops at two ends of the light source in a current working state, the electronic equipment pre-caches an image processing program which is required to be executed for completing each service requirement and is used for identifying information contained in an image, the light source identified by each image processing program is consistent with the light source corresponding to the image processing program during image acquisition, and the method comprises the following steps: acquiring state signals representing working states of a plurality of different types of light sources, wherein the state signals represent pressure drops at two ends of a light source which is currently in the working state in the plurality of different types of light sources; determining a light source with the same pressure drop at two ends in a working state as the pressure drop represented by the state signal from the plurality of different types of light sources as the current light source in the working state, wherein the pressure drops at two ends of the different types of light sources in the working state are different; and loading an image processing program corresponding to the light source in the current working state.
  2. 2. The method of claim 1, wherein each type of light source comprises a specified number of light beads, and the pressure drop across the type of light source when in operation is determined based on the pressure drop across one of the type of light sources when in operation and the manner in which the specified number of light beads are connected.
  3. 3. The method according to claim 1, wherein the method further comprises: and if the pressure drops at the two ends of the light sources of different types are inconsistent with the pressure drops represented by the state signals when the light sources are in the working state, alarming.
  4. 4. The program loading device is applied to electronic equipment provided with an ADC digital-to-analog conversion sampling module, wherein the electronic equipment is connected with a plurality of different types of light sources through a hardware circuit, the ADC sampling module is used for collecting pressure drops at two ends of the light source in a current working state, the electronic equipment pre-caches an image processing program which is required to be executed for completing each service requirement and is used for identifying information contained in an image, the light source identified by each image processing program is consistent with the light source corresponding to the image processing program during image acquisition, and the device comprises: a status signal acquisition module for acquiring status signals representing the operating status of a plurality of different types of light sources; the light source type determining module is used for determining a light source which is currently in a working state in the plurality of different types of light sources based on the state signal; the program loading module is used for loading an image processing program corresponding to the light source in the current working state; The state signal represents the voltage drop across a light source of the plurality of different types of light sources that is currently in an operational state; The light source type determining module is specifically configured to: And determining the light sources with the same pressure drop at two ends in the working state as the light sources in the current working state from the plurality of different types of light sources, wherein the pressure drops at two ends of the different types of light sources in the working state are different.
  5. 5. The apparatus of claim 4, wherein each type of light source comprises a specified number of light beads, and the pressure drop across the type of light source when in operation is determined based on the pressure drop across one of the type of light sources when in operation and the manner in which the specified number of light beads are connected.
  6. 6. The apparatus of claim 4, wherein the apparatus further comprises: and the alarm module is used for giving an alarm if the pressure drop at the two ends of the plurality of different types of light sources in the working state is inconsistent with the pressure drop represented by the state signal.
  7. 7. A camera, comprising a processor and a camera; The camera is used for collecting images; the processor is configured to perform the method of any one of claims 1-3, so as to process the image acquired by the camera.
  8. 8. An image processing system comprising the camera of claim 7, and a plurality of different types of light sources.
  9. 9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-3.

Description

Program loading method, program loading device, camera, image processing system and storage medium Technical Field The present application relates to the field of machine vision, and in particular, to a program loading method, apparatus, camera, image processing system, and storage medium. Background With the rapid development of machine vision technology, images may be acquired by a camera and processed, for example, to identify information contained in the images. In addition, because of the different information that needs to be collected, it may be desirable to provide the camera with different types of light sources. For example, when an image containing a bar code is acquired, a white light source is required to be provided to the camera, and accordingly, the camera may load an image processing program for processing the image containing the bar code to process the acquired image, and when an image containing a line in a circuit board is acquired, a red light source is required to be provided to the camera, and accordingly, the camera may load an image processing program for processing the image containing the line to process the acquired image. In the related art, when a user changes the type of the light source according to service requirements, the camera needs to be set manually, so that the camera loads and operates a corresponding program for processing the acquired image, and further, the user operation is complicated, the service efficiency is low, and the labor cost is high. Disclosure of Invention The embodiment of the application aims to provide a program loading method, a program loading device, a camera, an image processing system and a storage medium, so that user operation is simplified, service efficiency is improved, and labor cost is reduced. The specific technical scheme is as follows: In a first aspect of the embodiment of the present application, there is provided a program loading method, including: acquiring status signals representing the operating status of a plurality of different types of light sources; Determining a light source currently in a working state in the plurality of different types of light sources based on the state signal; and loading an image processing program corresponding to the light source in the current working state. In some embodiments, the status signal is representative of a voltage drop across a currently active one of the plurality of different types of light sources; The determining, based on the status signal, a light source of the plurality of different types of light sources that is currently in an operating state includes: And determining a light source with the pressure drop at two ends consistent with the pressure drop represented by the state signal when the light source is in the working state from the plurality of different types of light sources, and taking the light source as the light source in the current working state. In some embodiments, each type of light source comprises a specified number of light beads, and the pressure drop across the type of light source when in an operational state is determined based on the pressure drop of one of the types of light source when in an operational state and the connection of the specified number of light beads comprised by the type of light source. In some embodiments, the method further comprises: and if the pressure drops at the two ends of the light sources of different types are inconsistent with the pressure drops represented by the state signals when the light sources are in the working state, alarming. In a second aspect of the embodiment of the present application, there is provided a program loading apparatus, including: a status signal acquisition module for acquiring status signals representing the operating status of a plurality of different types of light sources; the light source type determining module is used for determining a light source which is currently in a working state in the plurality of different types of light sources based on the state signal; and the program loading module is used for loading the image processing program corresponding to the light source in the current working state. In some embodiments, the status signal is representative of a voltage drop across a currently active one of the plurality of different types of light sources; The light source type determining module is specifically configured to: And determining a light source with the pressure drop at two ends consistent with the pressure drop represented by the state signal when the light source is in the working state from the plurality of different types of light sources, and taking the light source as the light source in the current working state. In some embodiments, each type of light source comprises a specified number of light beads, and the pressure drop across the type of light source when in an operational state is determined based on the pressure drop of one of the types of light source