WO2022082361A1 - Image information processing method and terminal device - Google Patents

Image information processing method and terminal device Download PDF

Info

Publication number
WO2022082361A1
WO2022082361A1 PCT/CN2020/121894 CN2020121894W WO2022082361A1 WO 2022082361 A1 WO2022082361 A1 WO 2022082361A1 CN 2020121894 W CN2020121894 W CN 2020121894W WO 2022082361 A1 WO2022082361 A1 WO 2022082361A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
data
processing data
processing
transmission module
Prior art date
Application number
PCT/CN2020/121894
Other languages
French (fr)
Chinese (zh)
Inventor
邓宝华
Original Assignee
深圳市锐明技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市锐明技术股份有限公司 filed Critical 深圳市锐明技术股份有限公司
Priority to CN202080002368.5A priority Critical patent/CN112425149B/en
Priority to PCT/CN2020/121894 priority patent/WO2022082361A1/en
Publication of WO2022082361A1 publication Critical patent/WO2022082361A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/59Context or environment of the image inside of a vehicle, e.g. relating to seat occupancy, driver state or inner lighting conditions
    • G06V20/597Recognising the driver's state or behaviour, e.g. attention or drowsiness
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • G06V40/19Sensors therefor

Definitions

  • the present application belongs to the technical field of image information processing, and in particular, relates to an image information processing method, a terminal device, and a computer-readable storage medium.
  • the embodiments of the present application provide an image information processing method, a terminal device, and a computer-readable storage medium, which can solve the problem that after each image recognition algorithm recognizes different image features, the transmission frequencies of asynchronous transmission to the image signal processor are different, so that the image signal The processor needs to perform intensive information interaction, which leads to the problem of large consumption of corresponding transmission resources and storage resources.
  • an embodiment of the present application provides an image information processing method, which is applied to a terminal device, where the terminal device includes a first data transmission module, a second data transmission module, and an image signal processor, and the image information processing method include:
  • the last processing data returned by the image information recognition device is stored in a preset memory space through the first data transmission module, and the latest processing data is used as the the current processing data corresponding to the image information identification device;
  • a set of processing data is acquired from the preset memory space at a preset period, wherein each preset period corresponds to a set of processing data, and one set of processing data is included in a corresponding preset period.
  • Set a period the current processing data corresponding to each of the image information recognition devices obtained by the second data transmission module from the preset memory space;
  • the second data processing module sends the K processing data sets to the image signal processor each time the K processing data sets are acquired cumulatively, where K is a positive integer.
  • an embodiment of the present application provides a terminal device, including a first data transmission module, a second data transmission module, and an image signal processor, wherein:
  • the first data transmission module is configured to: each time image data is acquired, send the image data to at least two image information recognition devices respectively, so as to obtain the respective image data of each of the image information recognition devices for the image data. returned processed data;
  • the first data transmission module is further configured to: for each image information identification device, store the latest processing data returned by the image information identification device in a preset memory space through the first data transmission module, and use the latest processing data as the current processing data corresponding to the image information recognition device;
  • the second data transmission module is used for: acquiring a processing data set from the preset memory space at a preset cycle, wherein each preset cycle corresponds to a processing data set, and one of the processing data sets is included in the corresponding processing data set. A preset period, the current processing data corresponding to each of the image information recognition devices obtained by the second data transmission module from the preset memory space;
  • the second data processing module is further configured to send the K processing data sets to the image signal processor each time the K processing data sets are acquired cumulatively, where K is a positive integer.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the image information processing method according to the first aspect.
  • an embodiment of the present application provides a computer program product that, when the computer program product runs on a terminal device, enables the terminal device to execute the image information processing method described above in the first aspect.
  • the first data transmission module each time the first data transmission module acquires image data, the first data transmission module sends the image data to at least two image information recognition apparatuses, respectively, so as to obtain the target data of each of the image information recognition apparatuses for the image.
  • the second data transmission module may acquire a processing data set from the preset memory space at a preset period, wherein each preset period corresponds to a processing data set, and each preset period corresponds to a processing data set, and each The processing data set is included in the corresponding preset period, and the second data transmission module obtains the current processing data corresponding to each of the image information recognition devices from the preset memory space; and, in the Each time the second data processing module acquires K processing data sets accumulatively, it sends the K processing data sets to the image signal processor, so that through the second data transmission module, at different time nodes, The latest processing data corresponding to each of the image information recognition devices is collected as the processing data set corresponding to the corresponding time node, and then each processing data set is sent to the image signal processing at a relatively stable frequency
  • the image signal processor can also obtain the required image features at a relatively stable speed and perform image processing, thereby avoiding intensive information interaction and saving transmission resources and storage resources.
  • FIG. 1 is a schematic diagram of an exemplary information interaction of a first data transmission module, a second data transmission module, an image signal processor, and an image information recognition device provided by an embodiment of the present application;
  • FIG. 2 is a schematic flowchart of an image information processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an exemplary information interaction among the second data transmission module, the first data transmission module, and each image information identification device provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another image information processing method provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • driver behavior recognition Digital State Montoring, DSM
  • images film the driver's driving behavior.
  • image feature information such as feature point coordinate information, etc.
  • facial details such as the eye area and the glasses area
  • the first data transmission module can respectively conduct information interaction with each of the image information recognition devices, so as to obtain and respectively store the latest processing data returned by each image information recognition device;
  • the second data transmission module conveniently collects the latest processing data corresponding to each of the image information recognition devices at different time nodes, as the processing data set corresponding to the corresponding time node, and then processes each data set.
  • the data set is sent to the image signal processor at a relatively stable frequency, so that the image signal processor can obtain the required image features and perform image processing at a relatively stable speed, thereby avoiding intensive information interaction, and can Save transmission resources and storage resources.
  • the image information processing method in the embodiment of the present application can be applied to a terminal device, and the specific type of the terminal device is not limited in any way.
  • the terminal device may be a vehicle-mounted device, a server, a desktop computer, a mobile phone, a tablet computer, a wearable device, an augmented reality (AR)/virtual reality (VR) device, a laptop, a super One of a mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA) and the like.
  • a vehicle-mounted device a server
  • a desktop computer a mobile phone
  • a tablet computer a wearable device
  • AR augmented reality
  • VR virtual reality
  • laptop a super One of a mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA) and the like.
  • PDA personal digital assistant
  • the terminal device may include a first data transmission module, a second data transmission module, and an image signal processor.
  • the first data transmission module may be a certain hardware module in the terminal device, or may be a set of at least two hardware modules in the terminal device, or may also be a hardware module in the terminal device A certain part of a specified hardware module used to implement a specified function, etc.
  • the second data transmission module may be a certain hardware module in the terminal device, or may be a set of at least two hardware modules in the terminal device, or may be a specified device in the terminal device. A certain part of a hardware module used to implement a specified function, etc.
  • the first data transmission module and the second data transmission module may have different independent hardware structures, and may also be located in the same hardware structure and correspond to different parts of the same hardware structure.
  • the first data transmission module and the second data transmission module may be different data processing units in the same hardware structure to run different threads and so on respectively.
  • the image signal processor (Image Signal Processor, ISP) can be used to process the image data output by the image sensor to obtain the output image for display.
  • the image signal processor may perform processing such as exposure on the image data in combination with the processing data returned by each of the image information recognition devices for the image data.
  • the image information recognition apparatus may be set in the terminal device, and may be an external device capable of information transmission with the terminal device, for example, it may be External devices such as cloud servers.
  • An image recognition algorithm may be deployed in the image information recognition device to perform image recognition on the input image data.
  • the number of the image information identification devices may be set according to actual scene requirements, which is not limited herein.
  • FIG. 1 it is a schematic diagram of an exemplary information interaction of the first data transmission module, the second data transmission module, the image signal processor and the image information identification device.
  • the first data transmission module can exchange information with each image information recognition device, and the first data transmission module and the second data transmission module can exchange information, and the second data transmission module can exchange information with each other.
  • Information interaction can be performed between the transmission module and the image signal processor.
  • FIG. 2 shows a flowchart of an image information processing method provided by an embodiment of the present application.
  • the image information processing method may include:
  • Step S201 each time the first data transmission module acquires image data, it sends the image data to at least two image information recognition devices respectively, so as to obtain the respective images of the image information recognition devices for the image data.
  • the returned processed data each time the first data transmission module acquires image data, it sends the image data to at least two image information recognition devices respectively, so as to obtain the respective images of the image information recognition devices for the image data.
  • the image data may be acquired by an image sensor in the camera of the terminal device, or may be transmitted to the terminal device through other devices communicatively connected to the terminal device. ; Alternatively, the image data may also be local image data pre-stored in the terminal device or the like. The specific acquisition manner of the image data is not limited herein.
  • the image data may be image data acquired in real time by the second data transmission module and sent to the first data transmission module at a preset period.
  • An image recognition algorithm may be deployed in any of the image information recognition apparatuses, and the image recognition algorithms in different image information recognition apparatuses may be different.
  • the type of the image recognition algorithm can be determined according to actual scene requirements.
  • the image information required by the image signal processor may include one or more of the following information:
  • Image lighting information may be used to indicate whether the image is in a backlight state, a dark light state, a daytime state, a night scene state, or the like.
  • the face area information may include face edge coordinates, facial feature point coordinates, and other feature point coordinates, mask information, and the like.
  • the eye information may include, for example, the coordinates of the center of the human eye, the width and height of the human eye, and the coordinates of the outline of the eye.
  • the glasses information may include judgment information about whether to wear glasses, information about the type of glasses, judgment information about whether to reflect light, and the like.
  • the face orientation information may include judgment information on the front face, the left face, or the right face.
  • any one of the image information identification devices is used to identify at least one of image illumination information, face area information, eye information, glasses information, and face orientation information, and Different image information identification devices are used to identify different information.
  • the image information identification device can also be used to identify other image information.
  • the first data transmission module sends the image data to the at least two image information recognition apparatuses.
  • the sending strategy of the image data may be determined according to the source of the image data, the data type, the user's preset information, and so on. Sure. For example, if the image data may come from two cameras, then if the image data comes from camera A, the image data can be transmitted to the image information recognition device a and the image information recognition device b. And if the image data comes from the camera B, the image data can be transmitted to the image information recognition device a and the image information recognition device c.
  • Step S202 for each image information recognition device, store the latest processing data returned by the image information recognition device in a preset memory space through the first data transmission module, and store the latest processing data in a preset memory space.
  • the data is used as the current processing data corresponding to the image information identification device.
  • the first data transmission module may be respectively associated with each image information recognition device, and respectively acquire and store the current processing data corresponding to each image information recognition device, so that the preset memory space is The latest processing data corresponding to each image information recognition device can be stored in the .
  • the preset memory space includes memory subspaces corresponding to each image information recognition device one-to-one, so that the currently processed data corresponding to each image information recognition device can be stored without interfering with each other.
  • Step S203 through the second data transmission module, obtain a processing data set from the preset memory space at a preset cycle, wherein each preset cycle corresponds to a processing data set, and one of the processing data sets is included in the processing data set.
  • the second data transmission module obtains the current processing data corresponding to each of the image information recognition devices from the preset memory space.
  • the second data transmission module can conveniently collect each of the data at different time nodes.
  • the latest processing data respectively corresponding to the image information recognition device is used as the processing data set corresponding to the corresponding time node.
  • Step S204 each time the second data processing module acquires K processing data sets accumulatively, sends the K processing data sets to the image signal processor, where K is a positive integer.
  • the K processing data sets may be set according to actual scene requirements.
  • the value of K is determined according to the preset period and the operating speed of the image signal processor.
  • the data processing module acquires 5 processing data sets accumulatively, it sends the 5 processing data sets to the image signal processor.
  • the K processing data sets are sent to the image signal processor, which can save storage resources and avoid memory data
  • the image signal processor can obtain the required image features at a relatively stable speed and perform image processing, thereby stably outputting the processed image and improving the output image quality.
  • the first data transmission module each time the first data transmission module acquires image data, the first data transmission module sends the image data to at least two image information recognition apparatuses, respectively, so as to obtain the target data of each of the image information recognition apparatuses for the image.
  • the second data transmission module may acquire a processing data set from the preset memory space at a preset period, wherein each preset period corresponds to a processing data set, and each preset period corresponds to a processing data set, and each The processing data set is included in the corresponding preset period, and the second data transmission module obtains the current processing data corresponding to each of the image information recognition devices from the preset memory space; and, in the Each time the second data processing module acquires K processing data sets accumulatively, it sends the K processing data sets to the image signal processor, so that through the second data transmission module, at different time nodes, The latest processing data corresponding to each of the image information recognition devices is collected as the processing data set corresponding to the corresponding time node, and then each processing data set is sent to the image signal processing at a relatively stable frequency
  • the image signal processor can also obtain the required image features at a relatively stable speed and perform image processing, thereby avoiding intensive information interaction and saving transmission resources and storage resources.
  • the preset memory space includes memory subspaces corresponding to each image information recognition device one-to-one, and the memory subspace is used to store the latest processing returned by the corresponding image information recognition device data, each memory subspace includes two paired memory blocks, one of the two paired memory blocks is marked as the first mark, and the other one of the two paired memory blocks is marked as second identification;
  • the last processing data returned by the image information recognition device is stored in a preset memory space through the first data transmission module, and the latest processing data is stored in the preset memory space.
  • the current processing data corresponding to the image information recognition device it includes:
  • the most recent processing data returned by the image information recognition device is stored in the target memory block through the first data transmission module, as the current processing data of the image information recognition device,
  • the target memory block is the memory block corresponding to the first identifier in the memory subspace corresponding to the image information recognition device, and the target memory block after the storage is completed does not store any memory other than the most recent one. other rounds of processing data;
  • the identification of the target memory block after the storage is completed is updated to the second identification, and the identification of the memory block that is paired with the target memory block is updated to the first identification;
  • the acquiring, by the second data transmission module, the processing data set from the preset memory space at a preset period includes:
  • each of the current image data is acquired from each of the memory blocks corresponding to the second identifier in the preset memory space at a preset period to obtain the processing data set.
  • FIG. 3 it is a schematic diagram of an exemplary information interaction among the second data transmission module, the first data transmission module and each image information recognition device.
  • the first data transmission module includes a memory subspace corresponding to the image information identification device 1 .
  • the memory subspace may include two paired memory blocks, one of the two paired memory blocks corresponding to the first identifier buf1, and the other one of the two paired memory blocks corresponding to the identifier.
  • the second identifier buf0 For the second identifier buf0.
  • the memory block identified as the first identification buf1 is a memory block that can write the processing data transmitted by the image information identification device 1, and the memory block identified as the second identification buf0 is capable of being read by the second data transmission module. fetched memory block. At this time, the memory space used for writing data and the memory space used for reading data are separated to avoid operation conflicts caused by writing data and reading data at the same time.
  • the most recent processing data returned by the image information recognition device is stored in the target memory block through the first data transmission module, and after the storage is completed,
  • the identification of the target memory block after the storage is completed is updated to the second identification
  • the identification of the memory block paired with the target memory block is updated to the first identification, after completing the storage of the latest processing data
  • each time the first data transmission module acquires image data the image data is respectively sent to at least two image information recognition apparatuses, so as to acquire the image data of each of the image information recognition apparatuses.
  • the processed data returned by the data including:
  • the image data is respectively sent to at least two image information recognition devices, so as to obtain each of the image information recognition devices The processing data returned respectively for the image data;
  • the acquiring, by the second data transmission module, the processing data set from the preset memory space at a preset period includes:
  • the second data transmission module Each time the second data transmission module sends real-time image data to the first data transmission module, it acquires a processing data set from the preset memory space.
  • the second data transmission module sends real-time image data to the first data transmission module at a preset period, and each time the real-time image data is sent to the first data transmission module at the same time , acquiring the processing data set from the preset memory space can reduce the delay between the acquired processing data set and the sent real-time image data, improve the efficiency of information interaction, and reduce the impact on information transmission resources. occupancy.
  • the method further includes:
  • Step S401 after each time the image signal processor receives the K processing data sets, determines a region of interest in the image data acquired in real time according to the K processing data sets;
  • Step S402 performing exposure processing on the image data acquired in real time according to the region of interest.
  • the region of interest (region of interest, ROI) can be used to outline the area to be processed in the form of boxes, circles, ellipses, irregular polygons, etc.
  • the content of the region of interest can be determined according to the actual scene and the corresponding image recognition algorithm.
  • the region of interest may be a face region.
  • the region of interest may be determined based on at least a portion of the processing data in the K sets of processing data. For example, it can be determined according to the facial contour feature point coordinates, the human eye feature point coordinates, and mask information in the processed data. There may be various specific determination methods. For example, the smallest square area that can include the face contour feature points can be used as the region of interest; in addition, the distance from the edge of the region of interest to the human face can also be determined according to the distance between the camera and the human face. Specify the distance between feature points, etc.
  • the step S401 may include:
  • the initial region of interest in the real-time acquired image data is determined according to the K processing data sets
  • the region of interest in the image data acquired in real time is determined.
  • the K processing data sets are There is a delay in the aggregation relative to the image data acquired in real time by the image signal processor. For example, it takes 300ms for the second data processing module to acquire K pieces of processing data sets accumulatively each time, and one processing cycle for the image data by the image information recognition device is 30ms, then, the K pieces of processing data
  • the delay of the data set relative to the image data acquired in real time by the image signal processor is at least 330ms.
  • the initial region of interest determined according to the K processing data sets may have an offset relative to the real region of interest of the image data acquired in real time.
  • the estimated offset information of the initial region of interest may be determined according to the K processing data sets and the N historical processing data sets.
  • the number of the historical processing data sets may be determined according to factors such as precision requirements and the value of K.
  • the estimated offset information includes a compensation region
  • the determining, according to the estimated offset information and the initial region of interest, the region of interest in the image data obtained in real time includes:
  • the performing exposure processing on the image data obtained in real time according to the region of interest includes:
  • Exposure processing is performed on the image data acquired in real time according to the first weight corresponding to the compensation area and the second weight corresponding to the initial region of interest.
  • the first weight may be used to indicate the exposure level corresponding to the compensation area
  • the second weight may be used to indicate the exposure level corresponding to the initial region of interest.
  • the values of the first weight and the second weight may be predetermined.
  • the first weight may be smaller than the second weight, for example, the first weight may be 0.5 times the second weight, and at this time, the exposure degree of the initial region of interest is relatively high
  • the exposure of the compensation area is slightly weaker relative to the initial area of interest, so that the initial area of interest is more prominent, and the exposure of the compensation area is slightly increased relative to other uninteresting areas, so that the exposure Processing is more accurate.
  • the determining the estimated offset information of the initial region of interest according to the K processing data sets and the N historical processing data sets includes:
  • the first moving speed of the target object corresponding to the historical period is calculated, wherein the target object and the initial associated with the region of interest;
  • the target period corresponding to the K processing data sets and the K processing data sets calculate the second moving speed of the target object corresponding to the target period
  • the estimated offset information of the initial region of interest is determined.
  • the first moving speed may include a first lateral speed and/or a first longitudinal speed
  • the second moving speed may include a second lateral speed and/or a second longitudinal speed
  • the target acceleration is also Lateral target acceleration and/or longitudinal target acceleration may be included.
  • the first moving speed of the target object corresponding to the historical period can be calculated, so as to obtain the movement of the target object in the historical period;
  • the second moving speed corresponding to the period so as to obtain the movement of the target object in the target period, so that the movement of the photographed target object between two different time periods can be compared to estimate the target.
  • the moving trend of the object is used to determine the estimated offset information.
  • the coordinates corresponding to a certain specified feature point in each processing data set corresponding to the historical period can be obtained, so as to obtain the specified feature point in the historical period.
  • the corresponding image position information at different time points, so as to obtain the first average speed of the specified feature point in the historical period, and then the first average speed can be used as the first moving speed.
  • the second moving speed is obtained by the above-mentioned method for obtaining the first moving speed.
  • the target acceleration of the target object may be determined, so that the target acceleration according to the second moving speed relative to the first moving speed is determined by the target acceleration.
  • the moving trend of the target object can be estimated to determine the estimated offset information.
  • the compensation area can be obtained by expanding along the direction of the second lateral velocity on the basis of the initial region of interest; If the second lateral velocity is less than the preset velocity threshold, it can be estimated that the target object may move in the opposite direction. Therefore, on the basis of the initial region of interest, the direction of the second lateral velocity and the The two directions of reversal of the lateral velocity are extended simultaneously to obtain the compensation region.
  • the initial region of interest may be expanded along the direction of the second lateral velocity to obtain the compensation region.
  • the magnitude of the second lateral velocity is multiplied by a preset coefficient to obtain the width extended by the compensation region along a specified lateral direction.
  • the compensation area in the longitudinal direction can also be obtained by the above method.
  • the image information processing method further includes:
  • the calculating calculates the first moving speed of the target object corresponding to the historical period, including:
  • the calculating, according to the target period corresponding to the K processing data sets and the K processing data sets, the second movement speed of the target object corresponding to the target period including:
  • the second moving speed is obtained according to the second distance and a preset distance-pixel displacement mapping relationship.
  • the corresponding relationship between the pixel displacement in the collected image and the moving speed of the target object in the real scene is also different.
  • the distance-pixel displacement mapping relationship can be established in advance, so as to unify the mapping relationship between the pixel displacement between different images to the three-dimensional space based on the distance between the camera and the target object, and then according to the unified mapping relationship
  • the pixel displacement after the mapping relationship determines the first moving speed and the second moving speed.
  • a mapping relationship between different distances and pixel displacements may be determined in advance to obtain the distance-pixel displacement mapping relationship.
  • the distance-pixel displacement mapping relationship by querying the distance-pixel displacement mapping relationship, it can be determined how many pixel displacements in the image captured by the camera at the distance can indicate the specified length in the three-dimensional space.
  • the distance-pixel displacement mapping relationship can also be regarded as a distance-pixel moving speed mapping relationship.
  • the first movement speed can be obtained according to the first distance and the preset distance-pixel displacement mapping relationship
  • the second initial movement speed is obtained after calculation
  • the second moving speed is obtained according to the second distance and a preset distance-pixel displacement mapping relationship.
  • the obtained first moving speed and the second moving speed can be equivalently regarded as moving speeds in the same space coordinate system, thereby ensuring the accuracy of the preset offset information.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 5 in this embodiment includes: a first data transmission module 501, a second data transmission module 502 and an image signal processor 503, wherein:
  • the first data transmission module 501 is configured to: each time image data is acquired, send the image data to at least two image information recognition devices respectively, so as to obtain the information about the image data by each of the image information recognition devices.
  • the processed data returned separately;
  • the first data transmission module 501 is further configured to: for each image information identification device, store the latest processing data returned by the image information identification device in a preset memory space through the first data transmission module 501 , and use the latest processing data as the current processing data corresponding to the image information recognition device;
  • the second data transmission module 502 is configured to: obtain a processing data set from the preset memory space at a preset cycle, wherein each preset cycle corresponds to a processing data set, and one of the processing data sets is included in the corresponding processing data set. The preset period, the second data transmission module 502 obtains the current processing data corresponding to each of the image information recognition devices from the preset memory space;
  • the second data processing module is further configured to send the K processing data sets to the image signal processor 503 each time the K processing data sets are acquired cumulatively, where K is a positive integer.
  • the preset memory space includes memory subspaces corresponding to each image information recognition device one-to-one, and the memory subspace is used to store the latest processing data returned by the corresponding image information recognition device,
  • Each memory subspace includes two paired memory blocks, one of the two paired memory blocks is identified as the first identification, and the other of the two paired memory blocks is identified as the second identification;
  • the first data transmission module 501 is used for:
  • the most recent processing data returned by the image information recognition device is stored in the target memory block through the first data transmission module 501 as the current processing data of the image information recognition device , wherein the target memory block is the memory block corresponding to the first identifier in the memory subspace corresponding to the image information recognition device, and the target memory block after the storage is completed does not store any data except for the most recent memory block. other rounds of processing data;
  • the identification of the target memory block after the storage is completed is updated to the second identification, and the identification of the memory block that is paired with the target memory block is updated to the first identification;
  • the second data transmission module 502 is used for:
  • Each of the current image data is acquired from each of the memory blocks corresponding to the second identifier in the preset memory space at a preset period to obtain the processing data set.
  • the second data transmission module 502 is used for:
  • the first data transmission module 501 is used for:
  • the image data sent by the second data transmission module 502 is acquired, the image data is respectively sent to at least two image information recognition devices, so as to obtain the information about the image data by each of the image information recognition devices.
  • the processed data returned separately;
  • the second data transmission module 502 is also used for:
  • the second data transmission module 502 sends real-time image data to the first data transmission module 501, it acquires a processing data set from the preset memory space.
  • the value of K is determined according to the preset period and the running speed of the image signal processor 503 .
  • the image signal processor 503 is used for:
  • exposure processing is performed on the image data acquired in real time.
  • the image signal processor 503 is used for:
  • the region of interest in the image data acquired in real time is determined.
  • the estimated offset information includes a compensation area
  • the image signal processor 503 is used for:
  • Exposure processing is performed on the image data acquired in real time according to the first weight corresponding to the compensation area and the second weight corresponding to the initial region of interest.
  • the image signal processor 503 is used for:
  • the first moving speed of the target object corresponding to the historical period is calculated, wherein the target object and the initial associated with the region of interest;
  • the target period corresponding to the K processing data sets and the K processing data sets calculate the second moving speed of the target object corresponding to the target period
  • the estimated offset information of the initial region of interest is determined.
  • the image signal processor 503 is used for:
  • the calculating, according to the target period corresponding to the K processing data sets and the K processing data sets, the second movement speed of the target object corresponding to the target period including:
  • the second moving speed is obtained according to the second distance and a preset distance-pixel displacement mapping relationship.
  • the first data transmission module 501 may include at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, so that the first data transmission module 501 may implement any of the above. Steps performed on the first data transmission module 501 in each image information processing method embodiment.
  • the second data transmission module 502 may include at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, so that the second data transmission module 502 may implement any of the above Steps performed on the second data transmission module 502 in each image information processing method embodiment.
  • the image signal processor 503 may also include at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, so that the image signal processor 503 can implement any of the above Steps performed on the image signal processor 503 in the embodiment of the image information processing method.
  • the first data transmission module 501 , the second data transmission module 502 and the image signal processor 503 may respectively include more or less components according to requirements.
  • the components included in the data transmission module 501 , the second data transmission module 502 and the image signal processor 503 are not limited herein.
  • Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
  • the embodiments of the present application provide a computer program product, when the computer program product runs on a terminal device, so that the terminal device can implement the steps in the foregoing method embodiments when executed.
  • the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium.
  • the present application realizes all or part of the processes in the methods of the above-mentioned embodiments, which can be completed by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program is in When executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code form, executable file or some intermediate form.
  • the above-mentioned computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the photographing device/terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunication signals, and software distribution media.
  • ROM read-only memory
  • RAM Random Access Memory
  • electrical carrier signals telecommunication signals
  • software distribution media for example, U disk, mobile hard disk, disk or CD, etc.
  • computer readable media may not be electrical carrier signals and telecommunications signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Ophthalmology & Optometry (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)

Abstract

The present application provides an image information processing method, comprising: each time a first data transmission module obtains image data, the first data transmission module sends the image data at least two image information identification devices, respectively; for each image information identification device, the first data transmission module stores the latest processed data returned by the image information identification device in a preset memory space; a second data transmission module obtains a processing data set from the preset memory space at a preset period; each time a second data processing module obtains K processing data sets in total, the second data processing module sends the K processing data sets to an image signal processor. The method solves the problem that after image identification algorithms identify different image features, transmission frequencies at which the different image features are asynchronously transmitted to an image signal processor are different, and therefore, the image signal processor needs to perform dense information interaction.

Description

图像信息处理方法及终端设备Image information processing method and terminal device 技术领域technical field
本申请属于图像信息处理技术领域,尤其涉及图像信息处理方法、终端设备及计算机可读存储介质。The present application belongs to the technical field of image information processing, and in particular, relates to an image information processing method, a terminal device, and a computer-readable storage medium.
背景技术Background technique
在实际应用中,为了更好地满足不同应用场景的需要,在获取到图像数据之后,往往需要通过一些图像识别算法来对图像进行诸如人脸区域、眼睛区域或者其他特征区域的识别,以确定图像中的感兴趣区域,从而确定对图像的曝光参数等图像处理参数。In practical applications, in order to better meet the needs of different application scenarios, after acquiring the image data, it is often necessary to use some image recognition algorithms to identify the image, such as face area, eye area or other characteristic areas, to determine The region of interest in the image, thereby determining the image processing parameters such as exposure parameters for the image.
技术问题technical problem
而目前,为了获得更为准确的图像特征信息,往往需要依赖图像识别算法来对图像特征进行识别,但引入图像识别算法往往会造成数据处理的延时;并且,若引入的图像识别算法不止一个,那么,不同的图像识别算法对数据的处理周期往往不同,从而使得各个图像识别算法分别识别到不同的图像特征之后,异步传输至图像信号处理器的传输频率不同,使得图像信号处理器需要进行密集的信息交互,导致相应的传输资源以及存储资源消耗较大。At present, in order to obtain more accurate image feature information, it is often necessary to rely on image recognition algorithms to identify image features, but the introduction of image recognition algorithms often results in a delay in data processing; and if more than one image recognition algorithm is introduced , then, different image recognition algorithms often have different processing cycles for data, so that after each image recognition algorithm recognizes different image features, the transmission frequency of asynchronous transmission to the image signal processor is different, so that the image signal processor needs to perform Intensive information interaction leads to a large consumption of corresponding transmission resources and storage resources.
技术解决方案technical solutions
本申请实施例提供了图像信息处理方法、终端设备及计算机可读存储介质,可以解决各个图像识别算法分别识别到不同的图像特征之后,异步传输至图像信号处理器的传输频率不同,使得图像信号处理器需要进行密集的信息交互,导致相应的传输资源以及存储资源消耗较大的问题。The embodiments of the present application provide an image information processing method, a terminal device, and a computer-readable storage medium, which can solve the problem that after each image recognition algorithm recognizes different image features, the transmission frequencies of asynchronous transmission to the image signal processor are different, so that the image signal The processor needs to perform intensive information interaction, which leads to the problem of large consumption of corresponding transmission resources and storage resources.
第一方面,本申请实施例提供了一种图像信息处理方法,应用于终端设备,所述终端设备包括第一数据传输模块、第二数据传输模块和图像信号处理器,所述图像信息处理方法包括:In a first aspect, an embodiment of the present application provides an image information processing method, which is applied to a terminal device, where the terminal device includes a first data transmission module, a second data transmission module, and an image signal processor, and the image information processing method include:
所述第一数据传输模块每次获取到图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据;Each time the first data transmission module acquires image data, it sends the image data to at least two image information recognition devices respectively, so as to obtain the processing respectively returned by each of the image information recognition devices for the image data data;
针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于预设内存空间中,并将所述最近一次的处理数据作为所述图像信息识别装置对应的当前处理数据;For each image information recognition device, the last processing data returned by the image information recognition device is stored in a preset memory space through the first data transmission module, and the latest processing data is used as the the current processing data corresponding to the image information identification device;
通过所述第二数据传输模块,以预设周期从所述预设内存空间获取处理数据集合,其中,每一个预设周期对应一个处理数据集合,且一个所述处理数据集合包括在对应的预设周期,所述第二数据传输模块从所述预设内存空间所获取到的各个所述图像信息识别装置所分别对应的当前处理数据;Through the second data transmission module, a set of processing data is acquired from the preset memory space at a preset period, wherein each preset period corresponds to a set of processing data, and one set of processing data is included in a corresponding preset period. Set a period, the current processing data corresponding to each of the image information recognition devices obtained by the second data transmission module from the preset memory space;
所述第二数据处理模块每次累计获取到K个处理数据集合时,将所述K个处理数据集合发送至图像信号处理器,其中,K为正整数。The second data processing module sends the K processing data sets to the image signal processor each time the K processing data sets are acquired cumulatively, where K is a positive integer.
第二方面,本申请实施例提供了一种终端设备,包括第一数据传输模块、第二数据传输模块和图像信号处理器,其中:In a second aspect, an embodiment of the present application provides a terminal device, including a first data transmission module, a second data transmission module, and an image signal processor, wherein:
所述第一数据传输模块用于:每次获取到图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据;The first data transmission module is configured to: each time image data is acquired, send the image data to at least two image information recognition devices respectively, so as to obtain the respective image data of each of the image information recognition devices for the image data. returned processed data;
所述第一数据传输模块还用于:针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于预设内存空间中,并将所述最近一次的处理数据作为所述图像信息识别装置对应的当前处理数据;The first data transmission module is further configured to: for each image information identification device, store the latest processing data returned by the image information identification device in a preset memory space through the first data transmission module, and use the latest processing data as the current processing data corresponding to the image information recognition device;
所述第二数据传输模块用于:以预设周期从所述预设内存空间获取处理数据集合,其中,每一个预设周期对应一个处理数据集合,且一个所述处理数据集合包括在对应的预设周期,所述第二数据传输模块从所述预设内存空间所获取到的各个所述图像信息识别装置所分别对应的当前处理数据;The second data transmission module is used for: acquiring a processing data set from the preset memory space at a preset cycle, wherein each preset cycle corresponds to a processing data set, and one of the processing data sets is included in the corresponding processing data set. A preset period, the current processing data corresponding to each of the image information recognition devices obtained by the second data transmission module from the preset memory space;
所述第二数据处理模块还用于:每次累计获取到K个处理数据集合时,将所述K个处理数据集合发送至图像信号处理器,其中,K为正整数。The second data processing module is further configured to send the K processing data sets to the image signal processor each time the K processing data sets are acquired cumulatively, where K is a positive integer.
第三方面,本申请实施例提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现如第一方面上述的图像信息处理方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the image information processing method according to the first aspect.
第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面中上述的图像信息处理方法。In a fourth aspect, an embodiment of the present application provides a computer program product that, when the computer program product runs on a terminal device, enables the terminal device to execute the image information processing method described above in the first aspect.
有益效果beneficial effect
本申请实施例中,所述第一数据传输模块每次获取到图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据;然后,针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于预设内存空间中,并将所述最近一次的处理数据作为所述图像信息识别装置对应的当前处理数据;此时,可以通过所述第一数据传输模块分别与各个所述图像信息识别装置进行信息交互,以获得并分别存储各个图像信息识别装置所返回的最新的处理数据。此外,本申请实施例中,可以通过所述第二数据传输模块,以预设周期从所述预设内存空间获取处理数据集合,其中,每一个预设周期对应一个处理数据集合,且一个所述处理数据集合包括在对应的预设周期,所述第二数据传输模块从所述预设内存空间所获取到的各个所述图像信息识别装置所分别对应的当前处理数据;并且,在所述第二数据处理模块每次累计获取到K个处理数据集合时,将所述K个处理数据集合发送至图像信号处理器,从而通过所述第二数据传输模块,方便地在不同的时间节点,采集到各个所述图像信息识别装置所分别对应的最近一次的处理数据,以作为相应的时间节点所对应的处理数据集合,再将各个处理数据集合以较为稳定的频率发送给所述图像信号处理器,使得所述图像信号处理器也能够以较为稳定的速度获取到所需的图像特征并进行图像处理,从而避免了密集的信息交互,可以节约传输资源以及存储资源。In this embodiment of the present application, each time the first data transmission module acquires image data, the first data transmission module sends the image data to at least two image information recognition apparatuses, respectively, so as to obtain the target data of each of the image information recognition apparatuses for the image. The processing data returned by the data respectively; then, for each image information recognition device, the most recent processing data returned by the image information recognition device is stored in the preset memory space through the first data transmission module, and The most recent processing data is used as the current processing data corresponding to the image information recognition device; at this time, the first data transmission module can respectively carry out information interaction with each of the image information recognition devices to obtain and respectively The latest processing data returned by each image information recognition device is stored. In addition, in this embodiment of the present application, the second data transmission module may acquire a processing data set from the preset memory space at a preset period, wherein each preset period corresponds to a processing data set, and each preset period corresponds to a processing data set, and each The processing data set is included in the corresponding preset period, and the second data transmission module obtains the current processing data corresponding to each of the image information recognition devices from the preset memory space; and, in the Each time the second data processing module acquires K processing data sets accumulatively, it sends the K processing data sets to the image signal processor, so that through the second data transmission module, at different time nodes, The latest processing data corresponding to each of the image information recognition devices is collected as the processing data set corresponding to the corresponding time node, and then each processing data set is sent to the image signal processing at a relatively stable frequency The image signal processor can also obtain the required image features at a relatively stable speed and perform image processing, thereby avoiding intensive information interaction and saving transmission resources and storage resources.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请一实施例提供的第一数据传输模块、第二数据传输模块、图像信号处理器和图像信息识别装置的一种示例性信息交互示意图;1 is a schematic diagram of an exemplary information interaction of a first data transmission module, a second data transmission module, an image signal processor, and an image information recognition device provided by an embodiment of the present application;
图2是本申请一实施例提供的一种图像信息处理方法的流程示意图;2 is a schematic flowchart of an image information processing method provided by an embodiment of the present application;
图3是本申请一实施例提供的第二数据传输模块、第一数据传输模块和各个图像信息识别装置之间的一种示例性信息交互示意图。FIG. 3 is a schematic diagram of an exemplary information interaction among the second data transmission module, the first data transmission module, and each image information identification device provided by an embodiment of the present application.
图4是本申请一实施例提供的另一种图像信息处理方法的流程示意图;4 is a schematic flowchart of another image information processing method provided by an embodiment of the present application;
图5是本申请一实施例提供的一种终端设备的结构示意图。FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
为了说明本申请上述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the above-mentioned technical solutions of the present application, the following specific embodiments are used for description.
在实际应用中,为了更好地满足不同应用场景的需要,在获取到图像数据之后,往往需要通过一些图像识别算法来对图像进行诸如人脸区域、眼睛区域或者其他特征区域的识别,以确定图像中的感兴趣区域,从而确定对图像的曝光参数等图像处理参数。In practical applications, in order to better meet the needs of different application scenarios, after acquiring the image data, it is often necessary to use some image recognition algorithms to identify the image, such as face area, eye area or other characteristic areas, to determine The region of interest in the image, thereby determining the image processing parameters such as exposure parameters for the image.
例如,在车载安防领域,可以通过司机行为识别(Driving State Montoring,DSM)摄像头对司机的驾驶行为进行拍摄。此时,需要获取人脸区域以及诸如眼睛区域、眼镜区域等面部细节的图像特征信息(如特征点坐标信息等等),以更好地对人脸等感兴趣区域进行曝光,获取到质量较好的拍摄图像。For example, in the field of vehicle security, driver behavior recognition (Driving State Montoring, DSM) cameras film the driver's driving behavior. At this time, it is necessary to obtain the image feature information (such as feature point coordinate information, etc.) of the face area and facial details such as the eye area and the glasses area, so as to better expose the area of interest such as the face, and obtain better quality Good shot image.
而目前,为了获得更为准确的图像特征信息,往往需要依赖图像识别算法来对图像特征进行识别,但引入图像识别算法往往会造成数据处理的延时;并且,若引入的图像识别算法不止一个,那么,不同的图像识别算法对数据的处理周期往往不同,从而导致各个图像识别算法分别识别到不同的图像特征之后,异步传输至图像信号处理器的传输频率不同,导致相应的传输资源以及存储资源消耗较大。At present, in order to obtain more accurate image feature information, it is often necessary to rely on image recognition algorithms to identify image features, but the introduction of image recognition algorithms often results in a delay in data processing; and if more than one image recognition algorithm is introduced , then, different image recognition algorithms often have different processing cycles for data, so that after each image recognition algorithm recognizes different image features, the transmission frequency of asynchronous transmission to the image signal processor is different, resulting in corresponding transmission resources and storage. Resource consumption is high.
而通过本申请实施例,可以通过第一数据传输模块分别与各个所述图像信息识别装置进行信息交互,以获得并分别存储各个图像信息识别装置所返回的最新的处理数据;并且,通过所述第二数据传输模块,方便地在不同的时间节点,采集到各个所述图像信息识别装置所分别对应的最近一次的处理数据,以作为相应的时间节点所对应的处理数据集合,再将各个处理数据集合以较为稳定的频率发送给所述图像信号处理器,使得所述图像信号处理器能够以较为稳定的速度获取到所需的图像特征并进行图像处理,从而避免了密集的信息交互,可以节约传输资源以及存储资源。However, through the embodiment of the present application, the first data transmission module can respectively conduct information interaction with each of the image information recognition devices, so as to obtain and respectively store the latest processing data returned by each image information recognition device; The second data transmission module conveniently collects the latest processing data corresponding to each of the image information recognition devices at different time nodes, as the processing data set corresponding to the corresponding time node, and then processes each data set. The data set is sent to the image signal processor at a relatively stable frequency, so that the image signal processor can obtain the required image features and perform image processing at a relatively stable speed, thereby avoiding intensive information interaction, and can Save transmission resources and storage resources.
本申请实施例中的图像信息处理方法可以应用于终端设备,所述终端设备的具体类型不作任何限制。The image information processing method in the embodiment of the present application can be applied to a terminal device, and the specific type of the terminal device is not limited in any way.
示例性的,所述终端设备可以为车载设备、服务器、台式电脑、手机、平板电脑、可穿戴设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等中的一种。Exemplarily, the terminal device may be a vehicle-mounted device, a server, a desktop computer, a mobile phone, a tablet computer, a wearable device, an augmented reality (AR)/virtual reality (VR) device, a laptop, a super One of a mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA) and the like.
本申请实施例中,所述终端设备可以包括第一数据传输模块、第二数据传输模块和图像信号处理器。In this embodiment of the present application, the terminal device may include a first data transmission module, a second data transmission module, and an image signal processor.
其中,所述第一数据传输模块可以为所述终端设备中的某一硬件模块,也可以是所述终端设备中的至少两个硬件模块的集合,或者,也可以是所述终端设备中的指定硬件模块中用于实现指定功能的某一部分等等。所述第二数据传输模块可以为所述终端设备中的某一硬件模块,或者,可以是所述终端设备中的至少两个硬件模块的集合,或者,也可以是所述终端设备中的指定硬件模块中用于实现指定功能的某一部分等等。需要说明的是,所述第一数据传输模块和所述第二数据传输模块可以分别为不同的独立的硬件结构,此外,也可以位于同一硬件结构,并分别对应同一硬件结构中的不同部分。例如,所述第一数据传输模块和所述第二数据传输模块可以为同一硬件结构中的不同数据处理单元,以分别运行不同线程等等。Wherein, the first data transmission module may be a certain hardware module in the terminal device, or may be a set of at least two hardware modules in the terminal device, or may also be a hardware module in the terminal device A certain part of a specified hardware module used to implement a specified function, etc. The second data transmission module may be a certain hardware module in the terminal device, or may be a set of at least two hardware modules in the terminal device, or may be a specified device in the terminal device. A certain part of a hardware module used to implement a specified function, etc. It should be noted that, the first data transmission module and the second data transmission module may have different independent hardware structures, and may also be located in the same hardware structure and correspond to different parts of the same hardware structure. For example, the first data transmission module and the second data transmission module may be different data processing units in the same hardware structure to run different threads and so on respectively.
所述图像信号处理器(Image Signal Processor,ISP)可以用于对图像传感器输出的图像数据进行处理,以获得用于显示的输出图像。本申请实施例中,所述图像信号处理器可以结合各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据对所述图像数据进行曝光等处理。The image signal processor (Image Signal Processor, ISP) can be used to process the image data output by the image sensor to obtain the output image for display. In the embodiment of the present application, the image signal processor may perform processing such as exposure on the image data in combination with the processing data returned by each of the image information recognition devices for the image data.
本申请实施例中,针对任一所述图像信息识别装置,所述图像信息识别装置可以设置于所述终端设备中,可以为能够与所述终端设备进行信息传输的外部设备,例如,可以是云端服务器等外部设备。所述图像信息识别装置中可以部署有图像识别算法,以针对所输入的图像数据进行图像识别。In the embodiments of the present application, for any of the image information recognition apparatuses, the image information recognition apparatus may be set in the terminal device, and may be an external device capable of information transmission with the terminal device, for example, it may be External devices such as cloud servers. An image recognition algorithm may be deployed in the image information recognition device to perform image recognition on the input image data.
所述图像信息识别装置的个数可以根据实际场景需求来设置,在此不作限定。The number of the image information identification devices may be set according to actual scene requirements, which is not limited herein.
如图1所示,为所述第一数据传输模块、第二数据传输模块、图像信号处理器和图像信息识别装置的一种示例性信息交互示意图。As shown in FIG. 1 , it is a schematic diagram of an exemplary information interaction of the first data transmission module, the second data transmission module, the image signal processor and the image information identification device.
如图1所示,所述第一数据传输模块可以分别与各个图像信息识别装置进行信息交互,而所述第一数据传输模块与第二数据传输模块之间可以进行信息交互,并且第二数据传输模块与图像信号处理器之间能够进行信息交互。As shown in FIG. 1 , the first data transmission module can exchange information with each image information recognition device, and the first data transmission module and the second data transmission module can exchange information, and the second data transmission module can exchange information with each other. Information interaction can be performed between the transmission module and the image signal processor.
图2示出了本申请实施例提供的一种图像信息处理方法的流程图。FIG. 2 shows a flowchart of an image information processing method provided by an embodiment of the present application.
具体的,如图2所示,该图像信息处理方法可以包括:Specifically, as shown in FIG. 2 , the image information processing method may include:
步骤S201,所述第一数据传输模块每次获取到图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据。Step S201, each time the first data transmission module acquires image data, it sends the image data to at least two image information recognition devices respectively, so as to obtain the respective images of the image information recognition devices for the image data. The returned processed data.
本申请实施例中,示例性的,所述图像数据可以为所述终端设备的摄像头中的图像传感器获取到的,也可以通过与所述终端设备通信连接的其他设备传输至所述终端设备的;或者,所述图像数据也可以为预先存储于所述终端设备中的本地图像数据等等。所述图像数据的具体获取方式在此不作限定。In the embodiments of the present application, for example, the image data may be acquired by an image sensor in the camera of the terminal device, or may be transmitted to the terminal device through other devices communicatively connected to the terminal device. ; Alternatively, the image data may also be local image data pre-stored in the terminal device or the like. The specific acquisition manner of the image data is not limited herein.
在一种实施例中,所述图像数据可以是通过所述第二数据传输模块实时获取到、并以预设周期向所述第一数据传输模块发送的图像数据。In an embodiment, the image data may be image data acquired in real time by the second data transmission module and sent to the first data transmission module at a preset period.
任一所述图像信息识别装置中可以部署有图像识别算法, 且不同的图像信息识别装置中的图像识别算法可以不同。所述图像识别算法的类型可以根据实际场景需求来确定。An image recognition algorithm may be deployed in any of the image information recognition apparatuses, and the image recognition algorithms in different image information recognition apparatuses may be different. The type of the image recognition algorithm can be determined according to actual scene requirements.
示例性的,若所述图像数据为车载安防系统中采集得到的图像数据,那么,所述图像信号处理器所需要的图像信息可以有以下信息中的一种或多种:Exemplarily, if the image data is image data collected in a vehicle-mounted security system, the image information required by the image signal processor may include one or more of the following information:
1、图像光照信息。示例性的,所述图像光照信息可以用于指示所述图像是否为逆光状态、暗光状态、白天状态或者夜景状态等等。1. Image lighting information. Exemplarily, the image illumination information may be used to indicate whether the image is in a backlight state, a dark light state, a daytime state, a night scene state, or the like.
2、人脸区域信息。所述人脸区域信息可以包括人脸边缘坐标、五官特征点坐标等等特征点坐标以及口罩信息等等。2. Face area information. The face area information may include face edge coordinates, facial feature point coordinates, and other feature point coordinates, mask information, and the like.
3、眼部信息。所述眼部信息可以包括诸如人眼中心坐标、人眼的宽高以及眼睛轮廓坐标等等。3. Eye information. The eye information may include, for example, the coordinates of the center of the human eye, the width and height of the human eye, and the coordinates of the outline of the eye.
4、所述眼镜信息。所述眼镜信息可以包括是否戴眼镜的判断信息、眼镜类型信息、是否反光的判断信息等等。4. The glasses information. The glasses information may include judgment information about whether to wear glasses, information about the type of glasses, judgment information about whether to reflect light, and the like.
5、脸部朝向信息。所述脸部朝向信息可以包括对正脸、左侧脸或者右侧脸的判断信息。5. Facial orientation information. The face orientation information may include judgment information on the front face, the left face, or the right face.
那么,相应的,在一些实施例中,任一所述图像信息识别装置用于识别图像光照信息、人脸区域信息、眼部信息、眼镜信息以及脸部朝向信息中的至少一种信息,且不同的图像信息识别装置用于识别不同的信息。Then, correspondingly, in some embodiments, any one of the image information identification devices is used to identify at least one of image illumination information, face area information, eye information, glasses information, and face orientation information, and Different image information identification devices are used to identify different information.
当然,根据场景需求,所述图像信息识别装置也可以用于识别其他图像信息。Of course, according to scene requirements, the image information identification device can also be used to identify other image information.
本申请实施例中,所述第一数据传输模块向至少两个图像信息识别装置发送将所述图像数据的发送策略可以根据所述图像数据的来源、数据类型以及用户的预先设置信息等等来确定。例如,若所述图像数据可能来自两个摄像头,那么,若所述图像数据来源于摄像头A,则可以在所述图像数据传输至图像信息识别装置a和图像信息识别装置b。而若所述图像数据来源于摄像头B,则可以在所述图像数据传输至图像信息识别装置a和图像信息识别装置c。In this embodiment of the present application, the first data transmission module sends the image data to the at least two image information recognition apparatuses. The sending strategy of the image data may be determined according to the source of the image data, the data type, the user's preset information, and so on. Sure. For example, if the image data may come from two cameras, then if the image data comes from camera A, the image data can be transmitted to the image information recognition device a and the image information recognition device b. And if the image data comes from the camera B, the image data can be transmitted to the image information recognition device a and the image information recognition device c.
步骤S202,针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于预设内存空间中,并将所述最近一次的处理数据作为所述图像信息识别装置对应的当前处理数据。Step S202, for each image information recognition device, store the latest processing data returned by the image information recognition device in a preset memory space through the first data transmission module, and store the latest processing data in a preset memory space. The data is used as the current processing data corresponding to the image information identification device.
本申请实施例中,所述第一数据传输模块可以分别与每一个图像信息识别装置,并分别获取和存储每一个图像信息识别装置所分别对应的当前处理数据,以使得所述预设内存空间中可以存储有每一个图像信息识别装置所对应的最新的处理数据。In the embodiment of the present application, the first data transmission module may be respectively associated with each image information recognition device, and respectively acquire and store the current processing data corresponding to each image information recognition device, so that the preset memory space is The latest processing data corresponding to each image information recognition device can be stored in the .
所述预设内存空间中的具体存储结构可以有多种。示例性的,所述预设内存空间内包括分别与各个图像信息识别装置一一对应的内存子空间,以使得各个图像信息识别装置所对应的当前处理数据在存储时可以互不干扰。There may be various specific storage structures in the preset memory space. Exemplarily, the preset memory space includes memory subspaces corresponding to each image information recognition device one-to-one, so that the currently processed data corresponding to each image information recognition device can be stored without interfering with each other.
步骤S203,通过所述第二数据传输模块,以预设周期从所述预设内存空间获取处理数据集合,其中,每一个预设周期对应一个处理数据集合,且一个所述处理数据集合包括在对应的预设周期,所述第二数据传输模块从所述预设内存空间所获取到的各个所述图像信息识别装置所分别对应的当前处理数据。Step S203, through the second data transmission module, obtain a processing data set from the preset memory space at a preset cycle, wherein each preset cycle corresponds to a processing data set, and one of the processing data sets is included in the processing data set. In the corresponding preset period, the second data transmission module obtains the current processing data corresponding to each of the image information recognition devices from the preset memory space.
本申请实施例中,由于所述预设内存空间可以存储有各个图像信息识别装置所对应的最新的处理数据,所述第二数据传输模块可以方便地在不同的时间节点,采集到各个所述图像信息识别装置所分别对应的最近一次的处理数据,以作为相应的时间节点所对应的处理数据集合。In the embodiment of the present application, since the preset memory space can store the latest processing data corresponding to each image information recognition device, the second data transmission module can conveniently collect each of the data at different time nodes. The latest processing data respectively corresponding to the image information recognition device is used as the processing data set corresponding to the corresponding time node.
步骤S204,所述第二数据处理模块每次累计获取到K个处理数据集合时,将所述K个处理数据集合发送至图像信号处理器,其中,K为正整数。Step S204, each time the second data processing module acquires K processing data sets accumulatively, sends the K processing data sets to the image signal processor, where K is a positive integer.
所述K个处理数据集合可以根据实际场景需求来设置。The K processing data sets may be set according to actual scene requirements.
在一些实施例中,K的值根据所述预设周期和所述图像信号处理器的运行速度确定。In some embodiments, the value of K is determined according to the preset period and the operating speed of the image signal processor.
例如,若所述预设周期为60ms,而所述图像信号处理器的每一次数据处理过程耗时300ms,那么,K的值可以为300/60=5,也即是说,所述第二数据处理模块每次累计获取到5个处理数据集合时,将所述5个处理数据集合发送至图像信号处理器。For example, if the preset period is 60ms, and each data processing process of the image signal processor takes 300ms, then the value of K can be 300/60=5, that is, the second Each time the data processing module acquires 5 processing data sets accumulatively, it sends the 5 processing data sets to the image signal processor.
本申请实施例中,所述第二数据处理模块每次累计获取到K个处理数据集合之后,再将所述K个处理数据集合发送至图像信号处理器,可以节约存储资源,避免由于内存数据的密集交互所导致的硬件资源被大量占用的问题,从而节约传输资源以及存储资源。In this embodiment of the present application, after the second data processing module acquires K processing data sets accumulatively each time, the K processing data sets are sent to the image signal processor, which can save storage resources and avoid memory data The problem that hardware resources are occupied by a large number of hardware resources caused by the intensive interaction, thereby saving transmission resources and storage resources.
此外,通过本申请实施例,所述图像信号处理器能够以较为稳定的速度获取到所需的图像特征并进行图像处理,从而稳定的输出处理后的图像,可以提升输出的图像质量。In addition, through the embodiments of the present application, the image signal processor can obtain the required image features at a relatively stable speed and perform image processing, thereby stably outputting the processed image and improving the output image quality.
本申请实施例中,所述第一数据传输模块每次获取到图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据;然后,针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于预设内存空间中,并将所述最近一次的处理数据作为所述图像信息识别装置对应的当前处理数据;此时,可以通过所述第一数据传输模块分别与各个所述图像信息识别装置进行信息交互,以获得并分别存储各个图像信息识别装置所返回的最新的处理数据。此外,本申请实施例中,可以通过所述第二数据传输模块,以预设周期从所述预设内存空间获取处理数据集合,其中,每一个预设周期对应一个处理数据集合,且一个所述处理数据集合包括在对应的预设周期,所述第二数据传输模块从所述预设内存空间所获取到的各个所述图像信息识别装置所分别对应的当前处理数据;并且,在所述第二数据处理模块每次累计获取到K个处理数据集合时,将所述K个处理数据集合发送至图像信号处理器,从而通过所述第二数据传输模块,方便地在不同的时间节点,采集到各个所述图像信息识别装置所分别对应的最近一次的处理数据,以作为相应的时间节点所对应的处理数据集合,再将各个处理数据集合以较为稳定的频率发送给所述图像信号处理器,使得所述图像信号处理器也能够以较为稳定的速度获取到所需的图像特征并进行图像处理,从而避免了密集的信息交互,可以节约传输资源以及存储资源。In this embodiment of the present application, each time the first data transmission module acquires image data, the first data transmission module sends the image data to at least two image information recognition apparatuses, respectively, so as to obtain the target data of each of the image information recognition apparatuses for the image. The processing data returned by the data respectively; then, for each image information recognition device, the most recent processing data returned by the image information recognition device is stored in the preset memory space through the first data transmission module, and The most recent processing data is used as the current processing data corresponding to the image information recognition device; at this time, the first data transmission module can respectively carry out information interaction with each of the image information recognition devices to obtain and respectively The latest processing data returned by each image information recognition device is stored. In addition, in this embodiment of the present application, the second data transmission module may acquire a processing data set from the preset memory space at a preset period, wherein each preset period corresponds to a processing data set, and each preset period corresponds to a processing data set, and each The processing data set is included in the corresponding preset period, and the second data transmission module obtains the current processing data corresponding to each of the image information recognition devices from the preset memory space; and, in the Each time the second data processing module acquires K processing data sets accumulatively, it sends the K processing data sets to the image signal processor, so that through the second data transmission module, at different time nodes, The latest processing data corresponding to each of the image information recognition devices is collected as the processing data set corresponding to the corresponding time node, and then each processing data set is sent to the image signal processing at a relatively stable frequency The image signal processor can also obtain the required image features at a relatively stable speed and perform image processing, thereby avoiding intensive information interaction and saving transmission resources and storage resources.
在一些实施例中,所述预设内存空间内包括分别与各个图像信息识别装置一一对应的内存子空间,所述内存子空间用于存储对应的图像信息识别装置所返回的最近一次的处理数据,每个内存子空间包括两个配对的内存块,所述两个配对的内存块中的一个对应的标识为第一标识,所述两个配对的内存块中的另一个对应的标识为第二标识;In some embodiments, the preset memory space includes memory subspaces corresponding to each image information recognition device one-to-one, and the memory subspace is used to store the latest processing returned by the corresponding image information recognition device data, each memory subspace includes two paired memory blocks, one of the two paired memory blocks is marked as the first mark, and the other one of the two paired memory blocks is marked as second identification;
所述针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于预设内存空间中,并将所述最近一次的处理数据作为所述图像信息识别装置对应的当前处理数据,包括:For each image information recognition device, the last processing data returned by the image information recognition device is stored in a preset memory space through the first data transmission module, and the latest processing data is stored in the preset memory space. As the current processing data corresponding to the image information recognition device, it includes:
针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于目标内存块,以作为所述图像信息识别装置的当前处理数据,其中,所述目标内存块为所述图像信息识别装置所对应的内存子空间中,对应第一标识的内存块,且存储完成后的所述目标内存块中未存储有除所述最近一次之外的其他轮次的处理数据;For each image information recognition device, the most recent processing data returned by the image information recognition device is stored in the target memory block through the first data transmission module, as the current processing data of the image information recognition device, Wherein, the target memory block is the memory block corresponding to the first identifier in the memory subspace corresponding to the image information recognition device, and the target memory block after the storage is completed does not store any memory other than the most recent one. other rounds of processing data;
在存储完成后,将存储完成后的所述目标内存块的标识更新为第二标识,并将与所述目标内存块相配对的内存块的标识更新为第一标识;After the storage is completed, the identification of the target memory block after the storage is completed is updated to the second identification, and the identification of the memory block that is paired with the target memory block is updated to the first identification;
所述通过所述第二数据传输模块,以预设周期从所述预设内存空间获取处理数据集合,包括:The acquiring, by the second data transmission module, the processing data set from the preset memory space at a preset period includes:
通过所述第二数据传输模块,以预设周期从所述预设内存空间中的各个对应第二标识的内存块中获取各个所述当前图像数据,以获得所述处理数据集合。Through the second data transmission module, each of the current image data is acquired from each of the memory blocks corresponding to the second identifier in the preset memory space at a preset period to obtain the processing data set.
如图3所示,为所述第二数据传输模块、第一数据传输模块和各个图像信息识别装置之间的一种示例性信息交互示意图。As shown in FIG. 3 , it is a schematic diagram of an exemplary information interaction among the second data transmission module, the first data transmission module and each image information recognition device.
其中,对于图像信息识别装置1,所述第一数据传输模块中包括一个与所述图像信息识别装置1相对应的内存子空间。所述内存子空间中可以包括两个配对的内存块,所述两个配对的内存块中的一个对应的标识为第一标识buf1,所述两个配对的内存块中的另一个对应的标识为第二标识buf0。Wherein, for the image information identification device 1 , the first data transmission module includes a memory subspace corresponding to the image information identification device 1 . The memory subspace may include two paired memory blocks, one of the two paired memory blocks corresponding to the first identifier buf1, and the other one of the two paired memory blocks corresponding to the identifier. For the second identifier buf0.
可以理解的是,标识为第一标识buf1的内存块为能够写入图像信息识别装置1所传输的处理数据的内存块,标识为第二标识buf0的内存块为能够被第二数据传输模块读取的内存块。此时,将用于写入数据的内存空间和用于读取数据的内存空间进行分离,避免同时写入数据和读取数据所导致的操作冲突。It can be understood that the memory block identified as the first identification buf1 is a memory block that can write the processing data transmitted by the image information identification device 1, and the memory block identified as the second identification buf0 is capable of being read by the second data transmission module. fetched memory block. At this time, the memory space used for writing data and the memory space used for reading data are separated to avoid operation conflicts caused by writing data and reading data at the same time.
此外,本申请实施例中,针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于目标内存块,在存储完成后,将存储完成后的所述目标内存块的标识更新为第二标识,并将与所述目标内存块相配对的内存块的标识更新为第一标识,可以在完成最新的处理数据的存储之后,通过改变内存块的标记,即可快速方便地更新所述第二数据传输模块所能够读取到的内存块中的处理数据,避免了在同一内存空间同时进行写入操作和读取操作时,读写操作由于等待写入数据所导致的等待延时。In addition, in the embodiment of the present application, for each image information recognition device, the most recent processing data returned by the image information recognition device is stored in the target memory block through the first data transmission module, and after the storage is completed, The identification of the target memory block after the storage is completed is updated to the second identification, and the identification of the memory block paired with the target memory block is updated to the first identification, after completing the storage of the latest processing data, By changing the mark of the memory block, the processing data in the memory block that can be read by the second data transmission module can be quickly and easily updated, avoiding the need for simultaneous write and read operations in the same memory space. The latency of read and write operations due to waiting for data to be written.
在一些实施例中,所述第一数据传输模块每次获取到图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据,包括:In some embodiments, each time the first data transmission module acquires image data, the image data is respectively sent to at least two image information recognition apparatuses, so as to acquire the image data of each of the image information recognition apparatuses. The processed data returned by the data, including:
通过所述第二数据传输模块以预设周期向所述第一数据传输模块发送实时的图像数据;Send real-time image data to the first data transmission module by the second data transmission module at a preset period;
所述第一数据传输模块每次获取到所述第二数据传输模块所发送的图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据;Each time the first data transmission module acquires the image data sent by the second data transmission module, the image data is respectively sent to at least two image information recognition devices, so as to obtain each of the image information recognition devices The processing data returned respectively for the image data;
所述通过所述第二数据传输模块,以预设周期从所述预设内存空间获取处理数据集合,包括:The acquiring, by the second data transmission module, the processing data set from the preset memory space at a preset period includes:
所述第二数据传输模块每次向所述第一数据传输模块发送实时的图像数据的同时,从所述预设内存空间获取处理数据集合。Each time the second data transmission module sends real-time image data to the first data transmission module, it acquires a processing data set from the preset memory space.
本申请实施例中,所述第二数据传输模块以预设周期向所述第一数据传输模块发送实时的图像数据,并在每次向所述第一数据传输模块发送实时的图像数据的同时,从所述预设内存空间获取处理数据集合,可以减小所获取到的处理数据集合与所发送的实时的图像数据之间的延时,同时提升信息交互的效率,减小对信息传输资源的占用。In the embodiment of the present application, the second data transmission module sends real-time image data to the first data transmission module at a preset period, and each time the real-time image data is sent to the first data transmission module at the same time , acquiring the processing data set from the preset memory space can reduce the delay between the acquired processing data set and the sent real-time image data, improve the efficiency of information interaction, and reduce the impact on information transmission resources. occupancy.
在一些实施例中,如图4所示,在将所述K个处理数据集合发送至图像信号处理器之后,还包括:In some embodiments, as shown in FIG. 4 , after the K processing data sets are sent to the image signal processor, the method further includes:
步骤S401,所述图像信号处理器每次接收到所述K个处理数据集合之后,根据所述K个处理数据集合确定实时获取到的图像数据中的感兴趣区域;Step S401, after each time the image signal processor receives the K processing data sets, determines a region of interest in the image data acquired in real time according to the K processing data sets;
步骤S402,根据所述感兴趣区域,对实时获取到的图像数据进行曝光处理。Step S402, performing exposure processing on the image data acquired in real time according to the region of interest.
本申请实施例中,所述感兴趣区域(region of interest,ROI)可以是以方框、圆、椭圆、不规则多边形等方式勾勒出需要处理的区域。所述感兴趣区域的内容可以根据实际场景以及相应的图像识别算法来确定。例如,在车载安防的应用场景中,所述感兴趣区域可以为人脸区域。In this embodiment of the present application, the region of interest (region of interest, ROI) can be used to outline the area to be processed in the form of boxes, circles, ellipses, irregular polygons, etc. The content of the region of interest can be determined according to the actual scene and the corresponding image recognition algorithm. For example, in an application scenario of vehicle security, the region of interest may be a face region.
所述感兴趣区域可以基于所述K个处理数据集合中的至少部分处理数据确定。例如,可以根据处理数据中的人脸轮廓特征点坐标、人眼特征点坐标以及口罩信息等等来确定。具体的确定方式可以有多种。例如,可以将能够包括所述人脸轮廓特征点的最小方形区域作为所述感兴趣区域;此外,也可以根据摄像头与人脸之间的距离确定所述感兴趣区域的边缘到人脸中的指定特征点之间的距离等等。The region of interest may be determined based on at least a portion of the processing data in the K sets of processing data. For example, it can be determined according to the facial contour feature point coordinates, the human eye feature point coordinates, and mask information in the processed data. There may be various specific determination methods. For example, the smallest square area that can include the face contour feature points can be used as the region of interest; in addition, the distance from the edge of the region of interest to the human face can also be determined according to the distance between the camera and the human face. Specify the distance between feature points, etc.
在一些实施例中,所述步骤S401可以包括:In some embodiments, the step S401 may include:
所述图像信号处理器每次接收到所述K个处理数据集合之后,根据所述K个处理数据集合确定所述实时获取到的图像数据中的初始感兴趣区域;After each time the image signal processor receives the K processing data sets, the initial region of interest in the real-time acquired image data is determined according to the K processing data sets;
根据所述K个处理数据集合和N个历史处理数据集合,确定所述初始感兴趣区域的预估偏移信息,其中,N为正整数;Determine the estimated offset information of the initial region of interest according to the K processing data sets and the N historical processing data sets, where N is a positive integer;
根据所述预估偏移信息和所述初始感兴趣区域,确定所述实时获取到的图像数据中的感兴趣区域。According to the estimated offset information and the initial region of interest, the region of interest in the image data acquired in real time is determined.
其中,针对所述图像信号处理器每次接收到的所述K个处理数据集合,根据所述K个处理数据集合确定实时获取到的图像数据中的感兴趣区域时,所述K个处理数据集合相对于所述图像信号处理器实时获取到的图像数据存在延时。例如,所述第二数据处理模块每次累计获取到K个处理数据集合的耗时是300ms,并且,所述图像信息识别装置对图像数据的一个处理周期为30ms,那么,所述K个处理数据集合相对于所述图像信号处理器实时获取到的图像数据的延时至少为330ms。Wherein, for the K processing data sets received by the image signal processor each time, when determining the region of interest in the image data acquired in real time according to the K processing data sets, the K processing data sets are There is a delay in the aggregation relative to the image data acquired in real time by the image signal processor. For example, it takes 300ms for the second data processing module to acquire K pieces of processing data sets accumulatively each time, and one processing cycle for the image data by the image information recognition device is 30ms, then, the K pieces of processing data The delay of the data set relative to the image data acquired in real time by the image signal processor is at least 330ms.
可见,根据所述K个处理数据集合确定的初始感兴趣区域相对于所述实时获取到的图像数据的真实感兴趣区域可能存在偏移。It can be seen that the initial region of interest determined according to the K processing data sets may have an offset relative to the real region of interest of the image data acquired in real time.
本申请实施例中,可以根据所述K个处理数据集合和N个历史处理数据集合,确定所述初始感兴趣区域的预估偏移信息。其中,所述历史处理数据集合的个数可以根据精度要求以及所述K的值等因素来确定。In this embodiment of the present application, the estimated offset information of the initial region of interest may be determined according to the K processing data sets and the N historical processing data sets. Wherein, the number of the historical processing data sets may be determined according to factors such as precision requirements and the value of K.
在一些实施例中,所述预估偏移信息包括补偿区域;In some embodiments, the estimated offset information includes a compensation region;
所述根据所述预估偏移信息和所述初始感兴趣区域,确定所述实时获取到的图像数据中的感兴趣区域,包括:The determining, according to the estimated offset information and the initial region of interest, the region of interest in the image data obtained in real time includes:
将所述补偿区域和所述初始感兴趣区域进行合并,获得所述感兴趣区域;combining the compensation region and the initial region of interest to obtain the region of interest;
所述根据所述感兴趣区域,对实时获取到的图像数据进行曝光处理,包括:The performing exposure processing on the image data obtained in real time according to the region of interest includes:
根据所述补偿区域所对应的第一权重,以及所述初始感兴趣区域所对应的第二权重,对实时获取到的图像数据进行曝光处理。Exposure processing is performed on the image data acquired in real time according to the first weight corresponding to the compensation area and the second weight corresponding to the initial region of interest.
本申请实施例中,所述第一权重可以用于指示所述补偿区域所对应的曝光程度,所述第二权重可以用于指示所述初始感兴趣区域所对应额度曝光程度。所述第一权重和所述第二权重的取值可以预先确定。示例性的,所述第一权重可以小于所述第二权重,例如,所述第一权重可以为所述第二权重的0.5倍,此时,所述初始感兴趣区域的曝光程度较高,而所述补偿区域相对于所述初始感兴趣区域的曝光程度稍弱,从而更为突出所述初始感兴趣区域,并在所述补偿区域相对于其他不感兴趣区域稍微地增加曝光,以使得曝光处理更为准确。In this embodiment of the present application, the first weight may be used to indicate the exposure level corresponding to the compensation area, and the second weight may be used to indicate the exposure level corresponding to the initial region of interest. The values of the first weight and the second weight may be predetermined. Exemplarily, the first weight may be smaller than the second weight, for example, the first weight may be 0.5 times the second weight, and at this time, the exposure degree of the initial region of interest is relatively high, The exposure of the compensation area is slightly weaker relative to the initial area of interest, so that the initial area of interest is more prominent, and the exposure of the compensation area is slightly increased relative to other uninteresting areas, so that the exposure Processing is more accurate.
在一些实施例中,所述根据所述K个处理数据集合和N个历史处理数据集合,确定所述初始感兴趣区域的预估偏移信息,包括:In some embodiments, the determining the estimated offset information of the initial region of interest according to the K processing data sets and the N historical processing data sets includes:
根据所述N个历史处理数据集合所对应的历史周期和所述N个历史处理数据集合,计算目标对象在所述历史周期所对应的第一移动速度,其中,所述目标对象与所述初始感兴趣区域相关联;According to the historical period corresponding to the N historical processing data sets and the N historical processing data sets, the first moving speed of the target object corresponding to the historical period is calculated, wherein the target object and the initial associated with the region of interest;
根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二移动速度;According to the target period corresponding to the K processing data sets and the K processing data sets, calculate the second moving speed of the target object corresponding to the target period;
根据所述第一移动速度和所述第二移动速度,确定所述目标对象的目标加速度;determining the target acceleration of the target object according to the first moving speed and the second moving speed;
根据所述目标加速度,确定所述初始感兴趣区域的预估偏移信息。According to the target acceleration, the estimated offset information of the initial region of interest is determined.
其中,所述第一移动速度可以包括第一横向速度和/或第一纵向速度,所述第二移动速度可以包括第二横向速度和/或第二纵向速度,相应的,所述目标加速度也可以包括横向目标加速度和/或纵向目标加速度。Wherein, the first moving speed may include a first lateral speed and/or a first longitudinal speed, the second moving speed may include a second lateral speed and/or a second longitudinal speed, and accordingly, the target acceleration is also Lateral target acceleration and/or longitudinal target acceleration may be included.
本申请实施例中,可以计算目标对象在所述历史周期所对应的第一移动速度,从而获得所述历史周期内所述目标对象的移动情况;并且,可以计算所述目标对象在所述目标周期所对应的第二移动速度,从而获得所述目标周期内所述目标对象的移动情况,从而可以比对两个不同时间段之间的被拍摄的目标对象的移动情况,以预估该目标对象的移动趋势,从而确定所述预估偏移信息。In this embodiment of the present application, the first moving speed of the target object corresponding to the historical period can be calculated, so as to obtain the movement of the target object in the historical period; The second moving speed corresponding to the period, so as to obtain the movement of the target object in the target period, so that the movement of the photographed target object between two different time periods can be compared to estimate the target. The moving trend of the object is used to determine the estimated offset information.
其中,示例性的,对于所述历史周期,可以获取某一指定特征点在所述历史周期所对应的各个处理数据集合中所分别对应的坐标,从而获得该指定特征点在所述历史周期中的不同时间点在对应的图像位置信息,从而获得该指定特征点在所述历史周期内的第一平均速度,然后可以将该第一平均速度作为所述第一移动速度。对于所述目标周期,类似的,通过上述获得第一移动速度的方法获得所述第二移动速度。Wherein, exemplarily, for the historical period, the coordinates corresponding to a certain specified feature point in each processing data set corresponding to the historical period can be obtained, so as to obtain the specified feature point in the historical period. The corresponding image position information at different time points, so as to obtain the first average speed of the specified feature point in the historical period, and then the first average speed can be used as the first moving speed. For the target period, similarly, the second moving speed is obtained by the above-mentioned method for obtaining the first moving speed.
然后,根据所述第一移动速度和所述第二移动速度,可以确定所述目标对象的目标加速度,从而通过所述目标加速度确定根据所述第二移动速度相对于所述第一移动速度的变化情况,可以预估该目标对象的移动趋势,以确定所述预估偏移信息。Then, according to the first moving speed and the second moving speed, the target acceleration of the target object may be determined, so that the target acceleration according to the second moving speed relative to the first moving speed is determined by the target acceleration. According to the change situation, the moving trend of the target object can be estimated to determine the estimated offset information.
例如,若所述第一横向速度与所述第二横向速度方向相同,且所述第一横向速度大于所述第二横向速度,则可以预估所述目标对象沿所述第二横向速度所在的方向减速。此时,若所述第二横向速度大于预设速度阈值,则可以在所述初始感兴趣区域的基础上沿所述第二横向速度的方向进行拓展,获得所述补偿区域;若所述第二横向速度小于预设速度阈值,则可以预估所述目标对象可能要进行反向运动,因此,可以在所述初始感兴趣区域的基础上沿所述第二横向速度的方向以及所述第二横向速度的逆向这两个方向同时进行拓展,以获得所述补偿区域。For example, if the first lateral velocity is in the same direction as the second lateral velocity, and the first lateral velocity is greater than the second lateral velocity, it is possible to estimate where the target object is located along the second lateral velocity slow down in the direction. At this time, if the second lateral velocity is greater than a preset velocity threshold, the compensation area can be obtained by expanding along the direction of the second lateral velocity on the basis of the initial region of interest; If the second lateral velocity is less than the preset velocity threshold, it can be estimated that the target object may move in the opposite direction. Therefore, on the basis of the initial region of interest, the direction of the second lateral velocity and the The two directions of reversal of the lateral velocity are extended simultaneously to obtain the compensation region.
而若所述第一横向速度与所述第二横向速度方向不同,且所述第一横向速度大于所述第二横向速度,则可以预估所述目标对象沿所述第二横向速度所在的方向加速。此时可以在所述初始感兴趣区域的基础上沿所述第二横向速度的方向进行拓展,以获得所述补偿区域。However, if the first lateral velocity and the second lateral velocity are in different directions, and the first lateral velocity is greater than the second lateral velocity, it can be estimated that the target object is located along the second lateral velocity. direction acceleration. At this time, the initial region of interest may be expanded along the direction of the second lateral velocity to obtain the compensation region.
示例性的,将所述第二横向速度的大小乘以预设系数,获得所述补偿区域沿指定的横向方向所拓展的宽度。Exemplarily, the magnitude of the second lateral velocity is multiplied by a preset coefficient to obtain the width extended by the compensation region along a specified lateral direction.
可以理解的是,对于第一纵向速度和第二纵向速度,也可以通过上述方法获得纵向方向上的补偿区域。It can be understood that, for the first longitudinal speed and the second longitudinal speed, the compensation area in the longitudinal direction can also be obtained by the above method.
在一些实施例中,所述图像信息处理方法还包括:In some embodiments, the image information processing method further includes:
确定在所述历史周期,采集所述图像数据的摄像头与所述目标对象之间的第一距离,并确定在所述目标周期,所述摄像头与所述目标对象之间的第二距离;determining the first distance between the camera that collected the image data and the target object in the historical period, and determining the second distance between the camera and the target object in the target period;
所述根据所述N个历史处理数据集合所对应的历史周期和所述N个历史处理数据集合,计算目标对象在所述历史周期所对应的第一移动速度,包括:The calculating, according to the historical period corresponding to the N historical processing data sets and the N historical processing data sets, calculates the first moving speed of the target object corresponding to the historical period, including:
根据所述N个历史处理数据集合所对应的历史周期和所述N个历史处理数据集合,计算目标对象在所述历史周期所对应的第一初始移动速度;According to the historical period corresponding to the N historical processing data sets and the N historical processing data sets, calculate the first initial moving speed of the target object corresponding to the historical period;
根据所述第一距离和预设的距离-像素位移映射关系,获得所述第一移动速度;obtaining the first moving speed according to the first distance and a preset distance-pixel displacement mapping relationship;
所述根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二移动速度,包括:The calculating, according to the target period corresponding to the K processing data sets and the K processing data sets, the second movement speed of the target object corresponding to the target period, including:
根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二初始移动速度;According to the target period corresponding to the K processing data sets and the K processing data sets, calculate the second initial moving speed of the target object corresponding to the target period;
根据所述第二距离和预设的距离-像素位移映射关系,获得所述第二移动速度。The second moving speed is obtained according to the second distance and a preset distance-pixel displacement mapping relationship.
本申请实施例中,当所述摄像头与所述目标对象之间的距离不同时,所采集到的图像中的像素位移与现实场景目标对象的移动速度之间的对应关系也存在差异。In the embodiment of the present application, when the distance between the camera and the target object is different, the corresponding relationship between the pixel displacement in the collected image and the moving speed of the target object in the real scene is also different.
因此,可以预先建立所述距离-像素位移映射关系,以基于所述摄像头与所述目标对象之间的距离,对不同图像之间的像素位移映射到三维空间的映射关系进行统一,再根据统一映射关系之后的像素位移确定所述第一移动速度和第二移动速度。Therefore, the distance-pixel displacement mapping relationship can be established in advance, so as to unify the mapping relationship between the pixel displacement between different images to the three-dimensional space based on the distance between the camera and the target object, and then according to the unified mapping relationship The pixel displacement after the mapping relationship determines the first moving speed and the second moving speed.
其中,示例性的,可以针对三维空间中的某一指定长度,确定预先确定不同距离与像素位移之间的映射关系以获得所述距离-像素位移映射关系。此时,针对某一距离,通过查询所述距离-像素位移映射关系,可以确定所述距离下通过所述摄像头拍摄得到的图像中,多少长度的像素位移可以指示三维空间中的该指定长度。需要说明的是,所述距离-像素位移映射关系也可以认为是距离像素移动速度映射关系。Wherein, for example, for a certain specified length in the three-dimensional space, a mapping relationship between different distances and pixel displacements may be determined in advance to obtain the distance-pixel displacement mapping relationship. At this time, for a certain distance, by querying the distance-pixel displacement mapping relationship, it can be determined how many pixel displacements in the image captured by the camera at the distance can indicate the specified length in the three-dimensional space. It should be noted that, the distance-pixel displacement mapping relationship can also be regarded as a distance-pixel moving speed mapping relationship.
因此,在计算得到所述第一初始移动速度之后,可以根据所述第一距离和预设的距离-像素位移映射关系,获得所述第一移动速度,并在计算得到所述第二初始移动速度之后,根据所述第二距离和预设的距离-像素位移映射关系,获得所述第二移动速度。此时,所得到的第一移动速度所对应的和第二移动速度可以等效地认为是在同一个空间坐标系下的移动速度,从而保证了所述预设偏移信息的准确性。Therefore, after the first initial movement speed is obtained by calculation, the first movement speed can be obtained according to the first distance and the preset distance-pixel displacement mapping relationship, and the second initial movement speed is obtained after calculation After the speed, the second moving speed is obtained according to the second distance and a preset distance-pixel displacement mapping relationship. At this time, the obtained first moving speed and the second moving speed can be equivalently regarded as moving speeds in the same space coordinate system, thereby ensuring the accuracy of the preset offset information.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
图5为本申请一实施例提供的终端设备的结构示意图。FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
如图5所示,该实施例的终端设备5包括:第一数据传输模块501、第二数据传输模块502和图像信号处理器503,其中:As shown in FIG. 5 , the terminal device 5 in this embodiment includes: a first data transmission module 501, a second data transmission module 502 and an image signal processor 503, wherein:
所述第一数据传输模块501用于:每次获取到图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据;The first data transmission module 501 is configured to: each time image data is acquired, send the image data to at least two image information recognition devices respectively, so as to obtain the information about the image data by each of the image information recognition devices. The processed data returned separately;
所述第一数据传输模块501还用于:针对每一图像信息识别装置,通过所述第一数据传输模块501将所述图像信息识别装置所返回的最近一次的处理数据存储于预设内存空间中,并将所述最近一次的处理数据作为所述图像信息识别装置对应的当前处理数据;The first data transmission module 501 is further configured to: for each image information identification device, store the latest processing data returned by the image information identification device in a preset memory space through the first data transmission module 501 , and use the latest processing data as the current processing data corresponding to the image information recognition device;
所述第二数据传输模块502用于:以预设周期从所述预设内存空间获取处理数据集合,其中,每一个预设周期对应一个处理数据集合,且一个所述处理数据集合包括在对应的预设周期,所述第二数据传输模块502从所述预设内存空间所获取到的各个所述图像信息识别装置所分别对应的当前处理数据;The second data transmission module 502 is configured to: obtain a processing data set from the preset memory space at a preset cycle, wherein each preset cycle corresponds to a processing data set, and one of the processing data sets is included in the corresponding processing data set. The preset period, the second data transmission module 502 obtains the current processing data corresponding to each of the image information recognition devices from the preset memory space;
所述第二数据处理模块还用于:每次累计获取到K个处理数据集合时,将所述K个处理数据集合发送至图像信号处理器503,其中,K为正整数。The second data processing module is further configured to send the K processing data sets to the image signal processor 503 each time the K processing data sets are acquired cumulatively, where K is a positive integer.
可选的,所述预设内存空间内包括分别与各个图像信息识别装置一一对应的内存子空间,所述内存子空间用于存储对应的图像信息识别装置所返回的最近一次的处理数据,每个内存子空间包括两个配对的内存块,所述两个配对的内存块中的一个对应的标识为第一标识,所述两个配对的内存块中的另一个对应的标识为第二标识;Optionally, the preset memory space includes memory subspaces corresponding to each image information recognition device one-to-one, and the memory subspace is used to store the latest processing data returned by the corresponding image information recognition device, Each memory subspace includes two paired memory blocks, one of the two paired memory blocks is identified as the first identification, and the other of the two paired memory blocks is identified as the second identification;
所述第一数据传输模块501用于:The first data transmission module 501 is used for:
针对每一图像信息识别装置,通过所述第一数据传输模块501将所述图像信息识别装置所返回的最近一次的处理数据存储于目标内存块,以作为所述图像信息识别装置的当前处理数据,其中,所述目标内存块为所述图像信息识别装置所对应的内存子空间中,对应第一标识的内存块,且存储完成后的所述目标内存块中未存储有除所述最近一次之外的其他轮次的处理数据;For each image information recognition device, the most recent processing data returned by the image information recognition device is stored in the target memory block through the first data transmission module 501 as the current processing data of the image information recognition device , wherein the target memory block is the memory block corresponding to the first identifier in the memory subspace corresponding to the image information recognition device, and the target memory block after the storage is completed does not store any data except for the most recent memory block. other rounds of processing data;
在存储完成后,将存储完成后的所述目标内存块的标识更新为第二标识,并将与所述目标内存块相配对的内存块的标识更新为第一标识;After the storage is completed, the identification of the target memory block after the storage is completed is updated to the second identification, and the identification of the memory block that is paired with the target memory block is updated to the first identification;
所述第二数据传输模块502用于:The second data transmission module 502 is used for:
以预设周期从所述预设内存空间中的各个对应第二标识的内存块中获取各个所述当前图像数据,以获得所述处理数据集合。Each of the current image data is acquired from each of the memory blocks corresponding to the second identifier in the preset memory space at a preset period to obtain the processing data set.
可选的,所述第二数据传输模块502用于:Optionally, the second data transmission module 502 is used for:
以预设周期向所述第一数据传输模块501发送实时的图像数据;Send real-time image data to the first data transmission module 501 with a preset period;
所述第一数据传输模块501用于:The first data transmission module 501 is used for:
每次获取到所述第二数据传输模块502所发送的图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据;Each time the image data sent by the second data transmission module 502 is acquired, the image data is respectively sent to at least two image information recognition devices, so as to obtain the information about the image data by each of the image information recognition devices. The processed data returned separately;
所述第二数据传输模块502还用于:The second data transmission module 502 is also used for:
所述第二数据传输模块502每次向所述第一数据传输模块501发送实时的图像数据的同时,从所述预设内存空间获取处理数据集合。Each time the second data transmission module 502 sends real-time image data to the first data transmission module 501, it acquires a processing data set from the preset memory space.
可选的,K的值根据所述预设周期和所述图像信号处理器503的运行速度确定。Optionally, the value of K is determined according to the preset period and the running speed of the image signal processor 503 .
可选的,所述图像信号处理器503用于:Optionally, the image signal processor 503 is used for:
每次接收到所述K个处理数据集合之后,根据所述K个处理数据集合确定实时获取到的图像数据中的感兴趣区域;After each receiving the K processing data sets, determine the region of interest in the image data obtained in real time according to the K processing data sets;
根据所述感兴趣区域,对实时获取到的图像数据进行曝光处理。According to the region of interest, exposure processing is performed on the image data acquired in real time.
可选的,所述图像信号处理器503用于:Optionally, the image signal processor 503 is used for:
每次接收到所述K个处理数据集合之后,根据所述K个处理数据集合确定所述实时获取到的图像数据中的初始感兴趣区域;After each receiving the K processing data sets, determine the initial region of interest in the image data obtained in real time according to the K processing data sets;
根据所述K个处理数据集合和N个历史处理数据集合,确定所述初始感兴趣区域的预估偏移信息,其中,N为正整数;Determine the estimated offset information of the initial region of interest according to the K processing data sets and the N historical processing data sets, where N is a positive integer;
根据所述预估偏移信息和所述初始感兴趣区域,确定所述实时获取到的图像数据中的感兴趣区域。According to the estimated offset information and the initial region of interest, the region of interest in the image data acquired in real time is determined.
可选的,所述预估偏移信息包括补偿区域;Optionally, the estimated offset information includes a compensation area;
所述图像信号处理器503用于:The image signal processor 503 is used for:
将所述补偿区域和所述初始感兴趣区域进行合并,获得所述感兴趣区域;combining the compensation region and the initial region of interest to obtain the region of interest;
根据所述补偿区域所对应的第一权重,以及所述初始感兴趣区域所对应的第二权重,对实时获取到的图像数据进行曝光处理。Exposure processing is performed on the image data acquired in real time according to the first weight corresponding to the compensation area and the second weight corresponding to the initial region of interest.
可选的,所述图像信号处理器503用于:Optionally, the image signal processor 503 is used for:
根据所述N个历史处理数据集合所对应的历史周期和所述N个历史处理数据集合,计算目标对象在所述历史周期所对应的第一移动速度,其中,所述目标对象与所述初始感兴趣区域相关联;According to the historical period corresponding to the N historical processing data sets and the N historical processing data sets, the first moving speed of the target object corresponding to the historical period is calculated, wherein the target object and the initial associated with the region of interest;
根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二移动速度;According to the target period corresponding to the K processing data sets and the K processing data sets, calculate the second moving speed of the target object corresponding to the target period;
根据所述第一移动速度和所述第二移动速度,确定所述目标对象的目标加速度;determining the target acceleration of the target object according to the first moving speed and the second moving speed;
根据所述目标加速度,确定所述初始感兴趣区域的预估偏移信息。According to the target acceleration, the estimated offset information of the initial region of interest is determined.
可选的,所述图像信号处理器503用于:Optionally, the image signal processor 503 is used for:
确定在所述历史周期,采集所述图像数据的摄像头与所述目标对象之间的第一距离,并确定在所述目标周期,所述摄像头与所述目标对象之间的第二距离;determining the first distance between the camera that collected the image data and the target object in the historical period, and determining the second distance between the camera and the target object in the target period;
根据所述N个历史处理数据集合所对应的历史周期和所述N个历史处理数据集合,计算目标对象在所述历史周期所对应的第一初始移动速度;According to the historical period corresponding to the N historical processing data sets and the N historical processing data sets, calculate the first initial moving speed of the target object corresponding to the historical period;
根据所述第一距离和预设的距离-像素位移映射关系,获得所述第一移动速度;obtaining the first moving speed according to the first distance and a preset distance-pixel displacement mapping relationship;
所述根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二移动速度,包括:The calculating, according to the target period corresponding to the K processing data sets and the K processing data sets, the second movement speed of the target object corresponding to the target period, including:
根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二初始移动速度;According to the target period corresponding to the K processing data sets and the K processing data sets, calculate the second initial moving speed of the target object corresponding to the target period;
根据所述第二距离和预设的距离-像素位移映射关系,获得所述第二移动速度。The second moving speed is obtained according to the second distance and a preset distance-pixel displacement mapping relationship.
所述第一数据传输模块501可以包括至少一个处理器、存储器以及存储在该存储器中并可在该至少一个处理器上运行的计算机程序,以使得所述第一数据传输模块501可以实现上述任意各个图像信息处理方法实施例中的在所述第一数据传输模块501上执行的步骤。The first data transmission module 501 may include at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, so that the first data transmission module 501 may implement any of the above. Steps performed on the first data transmission module 501 in each image information processing method embodiment.
所述第二数据传输模块502可以包括至少一个处理器、存储器以及存储在该存储器中并可在该至少一个处理器上运行的计算机程序,以使得所述第二数据传输模块502可以实现上述任意各个图像信息处理方法实施例中的在所述第二数据传输模块502上执行的步骤。The second data transmission module 502 may include at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, so that the second data transmission module 502 may implement any of the above Steps performed on the second data transmission module 502 in each image information processing method embodiment.
所述图像信号处理器503也可以包括至少一个处理器、存储器以及存储在该存储器中并可在该至少一个处理器上运行的计算机程序,以使得所述图像信号处理器503可以实现上述任意各个图像信息处理方法实施例中的在所述图像信号处理器503上执行的步骤。The image signal processor 503 may also include at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, so that the image signal processor 503 can implement any of the above Steps performed on the image signal processor 503 in the embodiment of the image information processing method.
需要说明的是,所述第一数据传输模块501、所述第二数据传输模块502以及所述图像信号处理器503也可以分别根据需要,包含更多或者更少的部件,其所述第一数据传输模块501、所述第二数据传输模块502以及所述图像信号处理器503所分别包含的部件在此不做限定。It should be noted that, the first data transmission module 501 , the second data transmission module 502 and the image signal processor 503 may respectively include more or less components according to requirements. The components included in the data transmission module 501 , the second data transmission module 502 and the image signal processor 503 are not limited herein.
本申请实施例还提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时实现可实现上述各个方法实施例中的步骤。The embodiments of the present application provide a computer program product, when the computer program product runs on a terminal device, so that the terminal device can implement the steps in the foregoing method embodiments when executed.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above-mentioned embodiments, which can be completed by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program is in When executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the photographing device/terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory ( RAM, Random Access Memory), electrical carrier signals, telecommunication signals, and software distribution media. For example, U disk, mobile hard disk, disk or CD, etc. In some jurisdictions, under legislation and patent practice, computer readable media may not be electrical carrier signals and telecommunications signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that the above-mentioned embodiments can still be used for The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in the present application. within the scope of protection of the application.

Claims (19)

  1. 一种图像信息处理方法,其特征在于,应用于终端设备,所述终端设备包括第一数据传输模块、第二数据传输模块和图像信号处理器,所述图像信息处理方法包括: An image information processing method, characterized in that it is applied to a terminal device, wherein the terminal device includes a first data transmission module, a second data transmission module, and an image signal processor, and the image information processing method includes:
    所述第一数据传输模块每次获取到图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据;Each time the first data transmission module acquires image data, it sends the image data to at least two image information recognition devices respectively, so as to obtain the processing respectively returned by each of the image information recognition devices for the image data data;
    针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于预设内存空间中,并将所述最近一次的处理数据作为所述图像信息识别装置对应的当前处理数据;For each image information recognition device, the last processing data returned by the image information recognition device is stored in a preset memory space through the first data transmission module, and the latest processing data is used as the the current processing data corresponding to the image information identification device;
    通过所述第二数据传输模块,以预设周期从所述预设内存空间获取处理数据集合,其中,每一个预设周期对应一个处理数据集合,且一个所述处理数据集合包括在对应的预设周期,所述第二数据传输模块从所述预设内存空间所获取到的各个所述图像信息识别装置所分别对应的当前处理数据;Through the second data transmission module, a set of processing data is acquired from the preset memory space at a preset period, wherein each preset period corresponds to a set of processing data, and one set of processing data is included in a corresponding preset period. Set a period, the current processing data corresponding to each of the image information recognition devices obtained by the second data transmission module from the preset memory space;
    所述第二数据处理模块每次累计获取到K个处理数据集合时,将所述K个处理数据集合发送至图像信号处理器,其中,K为正整数。The second data processing module sends the K processing data sets to the image signal processor each time the K processing data sets are acquired cumulatively, where K is a positive integer.
  2. 如权利要求1所述的图像信息处理方法,其特征在于,所述预设内存空间内包括分别与各个图像信息识别装置一一对应的内存子空间,所述内存子空间用于存储对应的图像信息识别装置所返回的最近一次的处理数据,每个内存子空间包括两个配对的内存块,所述两个配对的内存块中的一个对应的标识为第一标识,所述两个配对的内存块中的另一个对应的标识为第二标识; The image information processing method according to claim 1, wherein the preset memory space includes memory subspaces corresponding to each image information recognition device one-to-one, and the memory subspaces are used for storing corresponding images The latest processing data returned by the information identification device, each memory subspace includes two paired memory blocks, one of the two paired memory blocks corresponds to the first identifier, and the two paired memory blocks correspond to the first Another corresponding identifier in the memory block is the second identifier;
    所述针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于预设内存空间中,并将所述最近一次的处理数据作为所述图像信息识别装置对应的当前处理数据,包括:For each image information recognition device, the last processing data returned by the image information recognition device is stored in a preset memory space through the first data transmission module, and the latest processing data is stored in the preset memory space. As the current processing data corresponding to the image information recognition device, it includes:
    针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于目标内存块,以作为所述图像信息识别装置的当前处理数据,其中,所述目标内存块为所述图像信息识别装置所对应的内存子空间中,对应第一标识的内存块,且存储完成后的所述目标内存块中未存储有除所述最近一次之外的其他轮次的处理数据;For each image information recognition device, the most recent processing data returned by the image information recognition device is stored in the target memory block through the first data transmission module, as the current processing data of the image information recognition device, Wherein, the target memory block is the memory block corresponding to the first identifier in the memory subspace corresponding to the image information recognition device, and the target memory block after the storage is completed does not store any memory other than the most recent one. other rounds of processing data;
    在存储完成后,将存储完成后的所述目标内存块的标识更新为第二标识,并将与所述目标内存块相配对的内存块的标识更新为第一标识;After the storage is completed, the identification of the target memory block after the storage is completed is updated to the second identification, and the identification of the memory block that is paired with the target memory block is updated to the first identification;
    所述通过所述第二数据传输模块,以预设周期从所述预设内存空间获取处理数据集合,包括:The acquiring, by the second data transmission module, the processing data set from the preset memory space at a preset period includes:
    通过所述第二数据传输模块,以预设周期从所述预设内存空间中的各个对应第二标识的内存块中获取各个所述当前图像数据,以获得所述处理数据集合。Through the second data transmission module, each of the current image data is acquired from each of the memory blocks corresponding to the second identifier in the preset memory space at a preset period to obtain the processing data set.
  3. 如权利要求1所述的图像信息处理方法,其特征在于,所述第一数据传输模块每次获取到图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据,包括: The image information processing method according to claim 1, wherein each time the first data transmission module obtains image data, the first data transmission module sends the image data to at least two image information recognition devices respectively, so as to obtain the respective image data. The processing data respectively returned by the image information identification device for the image data include:
    通过所述第二数据传输模块以预设周期向所述第一数据传输模块发送实时的图像数据;Send real-time image data to the first data transmission module by the second data transmission module at a preset period;
    所述第一数据传输模块每次获取到所述第二数据传输模块所发送的图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据;Each time the first data transmission module acquires the image data sent by the second data transmission module, the image data is respectively sent to at least two image information recognition devices, so as to obtain each of the image information recognition devices The processing data returned respectively for the image data;
    所述通过所述第二数据传输模块,以预设周期从所述预设内存空间获取处理数据集合,包括:The acquiring, by the second data transmission module, the processing data set from the preset memory space at a preset period includes:
    所述第二数据传输模块每次向所述第一数据传输模块发送实时的图像数据的同时,从所述预设内存空间获取处理数据集合。Each time the second data transmission module sends real-time image data to the first data transmission module, it acquires a processing data set from the preset memory space.
  4. 如权利要求1所述的图像信息处理方法,其特征在于,K的值根据所述预设周期和所述图像信号处理器的运行速度确定。 The image information processing method according to claim 1, wherein the value of K is determined according to the preset period and the running speed of the image signal processor.
  5. 如权利要求1至4任意一项所述的图像信息处理方法,其特征在于,在将所述K个处理数据集合发送至图像信号处理器之后,还包括: The image information processing method according to any one of claims 1 to 4, wherein after the K processing data sets are sent to the image signal processor, the method further comprises:
    所述图像信号处理器每次接收到所述K个处理数据集合之后,根据所述K个处理数据集合确定实时获取到的图像数据中的感兴趣区域;After each time the image signal processor receives the K processing data sets, the region of interest in the real-time acquired image data is determined according to the K processing data sets;
    根据所述感兴趣区域,对实时获取到的图像数据进行曝光处理。According to the region of interest, exposure processing is performed on the image data acquired in real time.
  6. 如权利要求5所述的图像信息处理方法,其特征在于,所述图像信号处理器每次接收到所述K个处理数据集合之后,根据所述K个处理数据集合确定实时获取到的图像数据中的感兴趣区域,包括: The image information processing method according to claim 5, wherein after each time the image signal processor receives the K processing data sets, the image data obtained in real time is determined according to the K processing data sets Areas of interest in , including:
    所述图像信号处理器每次接收到所述K个处理数据集合之后,根据所述K个处理数据集合确定所述实时获取到的图像数据中的初始感兴趣区域;After each time the image signal processor receives the K processing data sets, the initial region of interest in the real-time acquired image data is determined according to the K processing data sets;
    根据所述K个处理数据集合和N个历史处理数据集合,确定所述初始感兴趣区域的预估偏移信息,其中,N为正整数;Determine the estimated offset information of the initial region of interest according to the K processing data sets and the N historical processing data sets, where N is a positive integer;
    根据所述预估偏移信息和所述初始感兴趣区域,确定所述实时获取到的图像数据中的感兴趣区域。According to the estimated offset information and the initial region of interest, the region of interest in the image data acquired in real time is determined.
  7. 如权利要求6所述的图像信息处理方法,其特征在于,所述预估偏移信息包括补偿区域; The image information processing method according to claim 6, wherein the estimated offset information comprises a compensation area;
    所述根据所述预估偏移信息和所述初始感兴趣区域,确定所述实时获取到的图像数据中的感兴趣区域,包括:The determining, according to the estimated offset information and the initial region of interest, the region of interest in the image data obtained in real time includes:
    将所述补偿区域和所述初始感兴趣区域进行合并,获得所述感兴趣区域;combining the compensation region and the initial region of interest to obtain the region of interest;
    所述根据所述感兴趣区域,对实时获取到的图像数据进行曝光处理,包括:The performing exposure processing on the image data obtained in real time according to the region of interest includes:
    根据所述补偿区域所对应的第一权重,以及所述初始感兴趣区域所对应的第二权重,对实时获取到的图像数据进行曝光处理。Exposure processing is performed on the image data acquired in real time according to the first weight corresponding to the compensation area and the second weight corresponding to the initial region of interest.
  8. 如权利要求6所述的图像信息处理方法,其特征在于,所述根据所述K个处理数据集合和N个历史处理数据集合,确定所述初始感兴趣区域的预估偏移信息,包括: The image information processing method according to claim 6, wherein, determining the estimated offset information of the initial region of interest according to the K processing data sets and the N historical processing data sets, comprising:
    根据所述N个历史处理数据集合所对应的历史周期和所述N个历史处理数据集合,计算目标对象在所述历史周期所对应的第一移动速度,其中,所述目标对象与所述初始感兴趣区域相关联;According to the historical period corresponding to the N historical processing data sets and the N historical processing data sets, the first moving speed of the target object corresponding to the historical period is calculated, wherein the target object and the initial associated with the region of interest;
    根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二移动速度;According to the target period corresponding to the K processing data sets and the K processing data sets, calculate the second moving speed of the target object corresponding to the target period;
    根据所述第一移动速度和所述第二移动速度,确定所述目标对象的目标加速度;determining the target acceleration of the target object according to the first moving speed and the second moving speed;
    根据所述目标加速度,确定所述初始感兴趣区域的预估偏移信息。According to the target acceleration, the estimated offset information of the initial region of interest is determined.
  9. 如权利要求8所述的图像信息处理方法,其特征在于,还包括: The image information processing method according to claim 8, further comprising:
    确定在所述历史周期,采集所述图像数据的摄像头与所述目标对象之间的第一距离,并确定在所述目标周期,所述摄像头与所述目标对象之间的第二距离;determining the first distance between the camera that collected the image data and the target object in the historical period, and determining the second distance between the camera and the target object in the target period;
    所述根据所述N个历史处理数据集合所对应的历史周期和所述N个历史处理数据集合,计算目标对象在所述历史周期所对应的第一移动速度,包括:The calculating, according to the historical period corresponding to the N historical processing data sets and the N historical processing data sets, calculates the first moving speed of the target object corresponding to the historical period, including:
    根据所述N个历史处理数据集合所对应的历史周期和所述N个历史处理数据集合,计算目标对象在所述历史周期所对应的第一初始移动速度;According to the historical period corresponding to the N historical processing data sets and the N historical processing data sets, calculate the first initial moving speed of the target object corresponding to the historical period;
    根据所述第一距离和预设的距离-像素位移映射关系,获得所述第一移动速度;obtaining the first moving speed according to the first distance and a preset distance-pixel displacement mapping relationship;
    所述根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二移动速度,包括:The calculating, according to the target period corresponding to the K processing data sets and the K processing data sets, the second movement speed of the target object corresponding to the target period, including:
    根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二初始移动速度;According to the target period corresponding to the K processing data sets and the K processing data sets, calculate the second initial moving speed of the target object corresponding to the target period;
    根据所述第二距离和预设的距离-像素位移映射关系,获得所述第二移动速度。The second moving speed is obtained according to the second distance and a preset distance-pixel displacement mapping relationship.
  10. 一种终端设备,其特征在于,包括第一数据传输模块、第二数据传输模块和图像信号处理器,其中: A terminal device, comprising a first data transmission module, a second data transmission module and an image signal processor, wherein:
    所述第一数据传输模块用于:每次获取到图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据;The first data transmission module is configured to: each time image data is acquired, send the image data to at least two image information recognition devices respectively, so as to obtain the respective image data of each of the image information recognition devices for the image data. returned processed data;
    所述第一数据传输模块还用于:针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于预设内存空间中,并将所述最近一次的处理数据作为所述图像信息识别装置对应的当前处理数据;The first data transmission module is further configured to: for each image information identification device, store the latest processing data returned by the image information identification device in a preset memory space through the first data transmission module, and use the latest processing data as the current processing data corresponding to the image information recognition device;
    所述第二数据传输模块用于:以预设周期从所述预设内存空间获取处理数据集合,其中,每一个预设周期对应一个处理数据集合,且一个所述处理数据集合包括在对应的预设周期,所述第二数据传输模块从所述预设内存空间所获取到的各个所述图像信息识别装置所分别对应的当前处理数据;The second data transmission module is used for: acquiring a processing data set from the preset memory space at a preset cycle, wherein each preset cycle corresponds to a processing data set, and one of the processing data sets is included in the corresponding processing data set. A preset period, the current processing data corresponding to each of the image information recognition devices obtained by the second data transmission module from the preset memory space;
    所述第二数据处理模块还用于:每次累计获取到K个处理数据集合时,将所述K个处理数据集合发送至图像信号处理器,其中,K为正整数。The second data processing module is further configured to send the K processing data sets to the image signal processor each time the K processing data sets are acquired cumulatively, where K is a positive integer.
  11. 如权利要求10所述的终端设备,其特征在于,所述预设内存空间内包括分别与各个图像信息识别装置一一对应的内存子空间,所述内存子空间用于存储对应的图像信息识别装置所返回的最近一次的处理数据,每个内存子空间包括两个配对的内存块,所述两个配对的内存块中的一个对应的标识为第一标识,所述两个配对的内存块中的另一个对应的标识为第二标识; The terminal device according to claim 10, wherein the preset memory space includes memory subspaces corresponding to each image information recognition device one-to-one, and the memory subspaces are used to store corresponding image information recognition devices. The latest processing data returned by the device, each memory subspace includes two paired memory blocks, one of the two paired memory blocks corresponds to the first identifier, and the two paired memory blocks Another corresponding identification in is the second identification;
    所述第一数据传输模块用于:The first data transmission module is used for:
    针对每一图像信息识别装置,通过所述第一数据传输模块将所述图像信息识别装置所返回的最近一次的处理数据存储于目标内存块,以作为所述图像信息识别装置的当前处理数据,其中,所述目标内存块为所述图像信息识别装置所对应的内存子空间中,对应第一标识的内存块,且存储完成后的所述目标内存块中未存储有除所述最近一次之外的其他轮次的处理数据;For each image information recognition device, the most recent processing data returned by the image information recognition device is stored in the target memory block through the first data transmission module, as the current processing data of the image information recognition device, Wherein, the target memory block is the memory block corresponding to the first identifier in the memory subspace corresponding to the image information recognition device, and the target memory block after the storage is completed does not store any memory other than the most recent one. other rounds of processing data;
    在存储完成后,将存储完成后的所述目标内存块的标识更新为第二标识,并将与所述目标内存块相配对的内存块的标识更新为第一标识;After the storage is completed, the identification of the target memory block after the storage is completed is updated to the second identification, and the identification of the memory block that is paired with the target memory block is updated to the first identification;
    所述第二数据传输模块用于:The second data transmission module is used for:
    以预设周期从所述预设内存空间中的各个对应第二标识的内存块中获取各个所述当前图像数据,以获得所述处理数据集合。Each of the current image data is acquired from each of the memory blocks corresponding to the second identifier in the preset memory space at a preset period to obtain the processing data set.
  12. 如权利要求10所述的终端设备,其特征在于,所述第二数据传输模块用于: The terminal device according to claim 10, wherein the second data transmission module is used for:
    以预设周期向所述第一数据传输模块发送实时的图像数据;sending real-time image data to the first data transmission module with a preset period;
    所述第一数据传输模块用于:The first data transmission module is used for:
    每次获取到所述第二数据传输模块所发送的图像数据时,将所述图像数据分别发送至至少两个图像信息识别装置,以获取各个所述图像信息识别装置针对所述图像数据所分别返回的处理数据;Each time the image data sent by the second data transmission module is acquired, the image data is respectively sent to at least two image information recognition devices, so as to obtain the respective image data of each of the image information recognition devices for the image data. returned processed data;
    所述第二数据传输模块还用于:The second data transmission module is also used for:
    所述第二数据传输模块每次向所述第一数据传输模块发送实时的图像数据的同时,从所述预设内存空间获取处理数据集合。Each time the second data transmission module sends real-time image data to the first data transmission module, it acquires a processing data set from the preset memory space.
  13. 如权利要求10所述的终端设备,其特征在于,K的值根据所述预设周期和所述图像信号处理器的运行速度确定。 The terminal device according to claim 10, wherein the value of K is determined according to the preset period and the running speed of the image signal processor.
  14. 如权利要求10至13任意一项所述的终端设备,其特征在于,所述图像信号处理器用于: The terminal device according to any one of claims 10 to 13, wherein the image signal processor is used for:
    每次接收到所述K个处理数据集合之后,根据所述K个处理数据集合确定实时获取到的图像数据中的感兴趣区域;After each receiving the K processing data sets, determine the region of interest in the image data obtained in real time according to the K processing data sets;
    根据所述感兴趣区域,对实时获取到的图像数据进行曝光处理。According to the region of interest, exposure processing is performed on the image data acquired in real time.
  15. 如权利要求14所述的终端设备,其特征在于,所述图像信号处理器用于: The terminal device according to claim 14, wherein the image signal processor is used for:
    每次接收到所述K个处理数据集合之后,根据所述K个处理数据集合确定所述实时获取到的图像数据中的初始感兴趣区域;After each receiving the K processing data sets, determine the initial region of interest in the image data obtained in real time according to the K processing data sets;
    根据所述K个处理数据集合和N个历史处理数据集合,确定所述初始感兴趣区域的预估偏移信息,其中,N为正整数;Determine the estimated offset information of the initial region of interest according to the K processing data sets and the N historical processing data sets, where N is a positive integer;
    根据所述预估偏移信息和所述初始感兴趣区域,确定所述实时获取到的图像数据中的感兴趣区域。According to the estimated offset information and the initial region of interest, the region of interest in the real-time acquired image data is determined.
  16. 如权利要求15所述的终端设备,其特征在于,所述预估偏移信息包括补偿区域; The terminal device of claim 15, wherein the estimated offset information comprises a compensation area;
    所述图像信号处理器用于:The image signal processor is used for:
    将所述补偿区域和所述初始感兴趣区域进行合并,获得所述感兴趣区域;combining the compensation region and the initial region of interest to obtain the region of interest;
    根据所述补偿区域所对应的第一权重,以及所述初始感兴趣区域所对应的第二权重,对实时获取到的图像数据进行曝光处理。Exposure processing is performed on the image data acquired in real time according to the first weight corresponding to the compensation area and the second weight corresponding to the initial region of interest.
  17. 如权利要求15所述的终端设备,其特征在于,所述图像信号处理器用于: The terminal device according to claim 15, wherein the image signal processor is used for:
    根据所述N个历史处理数据集合所对应的历史周期和所述N个历史处理数据集合,计算目标对象在所述历史周期所对应的第一移动速度,其中,所述目标对象与所述初始感兴趣区域相关联;According to the historical period corresponding to the N historical processing data sets and the N historical processing data sets, the first moving speed of the target object corresponding to the historical period is calculated, wherein the target object and the initial associated with the region of interest;
    根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二移动速度;According to the target period corresponding to the K processing data sets and the K processing data sets, calculate the second moving speed of the target object corresponding to the target period;
    根据所述第一移动速度和所述第二移动速度,确定所述目标对象的目标加速度;determining the target acceleration of the target object according to the first moving speed and the second moving speed;
    根据所述目标加速度,确定所述初始感兴趣区域的预估偏移信息。According to the target acceleration, the estimated offset information of the initial region of interest is determined.
  18. 如权利要求17所述的终端设备,其特征在于,所述图像信号处理器用于: The terminal device according to claim 17, wherein the image signal processor is used for:
    确定在所述历史周期,采集所述图像数据的摄像头与所述目标对象之间的第一距离,并确定在所述目标周期,所述摄像头与所述目标对象之间的第二距离;determining the first distance between the camera that collected the image data and the target object in the historical period, and determining the second distance between the camera and the target object in the target period;
    根据所述N个历史处理数据集合所对应的历史周期和所述N个历史处理数据集合,计算目标对象在所述历史周期所对应的第一初始移动速度;According to the historical period corresponding to the N historical processing data sets and the N historical processing data sets, calculate the first initial moving speed of the target object corresponding to the historical period;
    根据所述第一距离和预设的距离-像素位移映射关系,获得所述第一移动速度;obtaining the first moving speed according to the first distance and a preset distance-pixel displacement mapping relationship;
    所述根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二移动速度,包括:The calculating, according to the target period corresponding to the K processing data sets and the K processing data sets, the second moving speed corresponding to the target object in the target period, including:
    根据所述K个处理数据集合所对应的目标周期和所述K个处理数据集合,计算所述目标对象在所述目标周期所对应的第二初始移动速度;According to the target period corresponding to the K processing data sets and the K processing data sets, calculate the second initial moving speed of the target object corresponding to the target period;
    根据所述第二距离和预设的距离-像素位移映射关系,获得所述第二移动速度。The second moving speed is obtained according to the second distance and a preset distance-pixel displacement mapping relationship.
  19. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至9任一项所述的图像信息处理方法。A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the image information processing method according to any one of claims 1 to 9 is implemented .
PCT/CN2020/121894 2020-10-19 2020-10-19 Image information processing method and terminal device WO2022082361A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080002368.5A CN112425149B (en) 2020-10-19 2020-10-19 Image information processing method, terminal device, and computer-readable storage medium
PCT/CN2020/121894 WO2022082361A1 (en) 2020-10-19 2020-10-19 Image information processing method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/121894 WO2022082361A1 (en) 2020-10-19 2020-10-19 Image information processing method and terminal device

Publications (1)

Publication Number Publication Date
WO2022082361A1 true WO2022082361A1 (en) 2022-04-28

Family

ID=74783094

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/121894 WO2022082361A1 (en) 2020-10-19 2020-10-19 Image information processing method and terminal device

Country Status (2)

Country Link
CN (1) CN112425149B (en)
WO (1) WO2022082361A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100026844A1 (en) * 1996-06-28 2010-02-04 Metrovideo, Inc. Image acquisition system
US20180131869A1 (en) * 2016-11-09 2018-05-10 Samsung Electronics Co., Ltd. Method for processing image and electronic device supporting the same
CN110070083A (en) * 2019-04-24 2019-07-30 深圳市微埃智能科技有限公司 Image processing method, device, electronic equipment and computer readable storage medium
CN110995994A (en) * 2019-12-09 2020-04-10 上海瑾盛通信科技有限公司 Image shooting method and related device
CN111524159A (en) * 2019-02-01 2020-08-11 北京京东尚科信息技术有限公司 Image processing method and apparatus, storage medium, and processor
CN111597953A (en) * 2020-05-12 2020-08-28 杭州宇泛智能科技有限公司 Multi-path image processing method and device and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6307974B1 (en) * 1997-06-23 2001-10-23 Canon Kabushika Kaisha Image processing apparatus, system, and method with adaptive transfer
US7760968B2 (en) * 2004-01-16 2010-07-20 Nvidia Corporation Video image processing with processing time allocation
US8570393B2 (en) * 2007-11-30 2013-10-29 Cognex Corporation System and method for processing image data relative to a focus of attention within the overall image
US9053681B2 (en) * 2010-07-07 2015-06-09 Fotonation Limited Real-time video frame pre-processing hardware
CN202815869U (en) * 2012-09-11 2013-03-20 北京铁道工程机电技术研究所有限公司 Vehicle microcomputer image and video data extraction apparatus
US9355123B2 (en) * 2013-07-19 2016-05-31 Nant Holdings Ip, Llc Fast recognition algorithm processing, systems and methods
CN107181724B (en) * 2016-03-11 2021-02-12 华为技术有限公司 Identification method and system of cooperative flow and server using method
US10712738B2 (en) * 2016-05-09 2020-07-14 Strong Force Iot Portfolio 2016, Llc Methods and systems for industrial internet of things data collection for vibration sensitive equipment
US10911514B2 (en) * 2018-08-23 2021-02-02 Apple Inc. Synchronized wireless and video operations

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100026844A1 (en) * 1996-06-28 2010-02-04 Metrovideo, Inc. Image acquisition system
US20180131869A1 (en) * 2016-11-09 2018-05-10 Samsung Electronics Co., Ltd. Method for processing image and electronic device supporting the same
CN111524159A (en) * 2019-02-01 2020-08-11 北京京东尚科信息技术有限公司 Image processing method and apparatus, storage medium, and processor
CN110070083A (en) * 2019-04-24 2019-07-30 深圳市微埃智能科技有限公司 Image processing method, device, electronic equipment and computer readable storage medium
CN110995994A (en) * 2019-12-09 2020-04-10 上海瑾盛通信科技有限公司 Image shooting method and related device
CN111597953A (en) * 2020-05-12 2020-08-28 杭州宇泛智能科技有限公司 Multi-path image processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN112425149B (en) 2022-01-28
CN112425149A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN111210429B (en) Point cloud data partitioning method and device and obstacle detection method and device
CN108076286A (en) Image weakening method, device, mobile terminal and storage medium
TW201918772A (en) Apparatus and method of five dimensional (5D) video stabilization with camera and gyroscope fusion
JP2018508078A (en) System and method for object tracking
CN109086727B (en) Method and device for determining motion angle of human head and electronic equipment
CN112561978B (en) Training method of depth estimation network, depth estimation method of image and equipment
CN109377552B (en) Image occlusion calculating method, device, calculating equipment and storage medium
CN113888639A (en) Visual odometer positioning method and system based on event camera and depth camera
JP2015508584A (en) Method for 3D reconstruction of scenes that rely on asynchronous sensors
CN116012675B (en) Model training method, image processing method and electronic equipment
CN111354029B (en) Gesture depth determination method, device, equipment and storage medium
US20200090309A1 (en) Method and device for denoising processing, storage medium, and terminal
CN117934888A (en) Data aggregation method, system, device and storage medium
WO2022082361A1 (en) Image information processing method and terminal device
CN108062765A (en) Binocular image processing method, imaging device and electronic equipment
JP2019020839A (en) Image processing apparatus, image processing method and program
CN117132515A (en) Image processing method and electronic equipment
CN112367476B (en) Exposure time determining method and device of TOF camera and terminal equipment
CN111798506B (en) Image processing method, terminal and computer readable storage medium
CN111126101A (en) Method and device for determining key point position, electronic equipment and storage medium
CN115311624A (en) Slope displacement monitoring method and device, electronic equipment and storage medium
CN109374919B (en) Method and device for determining moving speed based on single shooting device
CN112287803A (en) Edge cooperative target detection method and device based on RoI coding
CN108431867B (en) Data processing method and terminal
CN114783041B (en) Target object recognition method, electronic device, and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20957950

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20957950

Country of ref document: EP

Kind code of ref document: A1