Information prompting method and device

By calculating the difference between the in-car image frame and the background image in the terminal device, the problem of being unable to be promptly reminded of items left by passengers is solved, enabling timely reminders to passengers and reducing losses.

CN112651280BActive Publication Date: 2024-09-06SHENZHEN JIMI SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011059088.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-30
Publication Date
2024-09-06
Estimated Expiration
2040-09-30

AI Technical Summary

Technical Problem

Existing methods cannot promptly remind passengers of items left on the vehicle, resulting in losses for passengers.

Method used

By obtaining the image frame of the designated area in the car in the terminal device, the difference between the image frame and the background image is calculated. If the difference is greater than or equal to the preset threshold and less than the difference in the previous frame, a prompt message is output to inform the passenger that there is an item. Left in the car.

Benefits of technology

It is possible to promptly remind passengers of items left on the vehicle when they get off the vehicle, thus reducing losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112651280B
    Figure CN112651280B
Patent Text Reader

Abstract

The present application is applicable to the field of data processing technology, and provides an information prompt method, which is applied to a terminal device, and the information prompt method includes: obtaining a current target image frame, which is an image frame obtained by shooting a designated area in the car; calculating the difference between the current target image frame and the background image, which is: an image of a designated area in the car that does not accommodate passengers and their belongings; if the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, then outputting a prompt message, wherein the prompt message is used to prompt passengers that there are items left in the car. Through the above method, when passengers leave items in the car, passengers can be reminded in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular, relates to an information prompting method and device. Background Art

[0002] Nowadays, vehicles have become an indispensable part of people's lives, and vehicles make it more convenient for passengers to go out. However, sometimes some unexpected things happen, causing losses to passengers, for example, passengers' belongings are left in taxis. In the existing methods, when passengers leave their belongings in the car, it is impossible to remind the passengers in time. Summary of the invention

[0003] The embodiments of the present application provide an information prompting method and device, which can solve the following problem: In the existing method, when a passenger leaves items on the bus, it is impossible to promptly remind the passenger.

[0004] In a first aspect, an embodiment of the present application provides an information prompting method, which is applied to a terminal device, and the information prompting method includes:

[0005] Obtaining a current target image frame, which is an image frame obtained by photographing a designated area in the vehicle;

[0006] Calculating the difference between the current target image frame and a background image, where the background image is an image of a designated area in the vehicle without accommodating passengers and their belongings;

[0007] If the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, a prompt message is output, wherein the prompt message is used to remind passengers that they have left items on the bus.

[0008] In a second aspect, an embodiment of the present application provides an information prompting device, which is applied to a terminal device, and the information prompting device includes:

[0009] An image frame acquisition unit, used to acquire a current target image frame, where the target image frame is an image frame obtained by photographing a designated area in the vehicle;

[0010] A difference calculation unit is used to calculate the difference between the current target image frame and a background image, wherein the background image is an image of a designated area in the vehicle without accommodating passengers and their belongings;

[0011] An information output unit is used to output a prompt message if the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, wherein the prompt message is used to remind passengers that they have left items on the bus.

[0012] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the information prompt method when executing the computer program.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the information prompt method are implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes any step of the information prompt method in the first aspect above.

[0015] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0016] Compared with the prior art, the embodiment of the present application has the following beneficial effects: since the target image frame is an image frame obtained by photographing the designated area in the vehicle, and the background image is an image of the designated area in the vehicle that does not contain passengers and passenger items, if the difference between the target image frame and the background image is greater than or equal to the preset difference threshold, it can be explained that there is a significant difference between the designated area in the vehicle corresponding to the target image frame and the designated area in the vehicle corresponding to the background image. Generally, it can be determined that the designated area in the vehicle corresponding to the target image contains passengers and / or passenger items. If the difference between the current target image frame and the background image is greater than or equal to the preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, the difference between the previous target image frame and the background image is greater than the preset difference threshold, from which it can be inferred that the designated area in the vehicle corresponding to the previous target image frame contains passengers and passenger items, and the designated area in the vehicle corresponding to the current target image frame contains passenger items, and further it can be inferred that the passenger items are left in the vehicle. Since a prompt message can be output as soon as it is detected that a passenger's belongings are left on the bus, the passenger can be reminded that there are belongings left on the bus before the passenger has gone far (for example, the passenger has just got off the bus and is standing next to the door). That is, when a passenger leaves belongings on the bus, the passenger can be reminded in time. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 This is a flow chart of a first information prompting method provided by an embodiment of the present application;

[0019] Figure 2 is a flow chart of a second information prompting method provided by another embodiment of the present application;

[0020] Figure 3 It is a structural schematic diagram of an information prompting device provided in an embodiment of the present application;

[0021] Figure 4 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0023] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0024] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0025] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0026] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0027] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0028] Embodiment 1:

[0029] Figure 1 The flowchart of the first information prompting method provided in the embodiment of the present application is shown, and the information prompting method is applied to a terminal device. The details are as follows:

[0030] Step S101, obtaining a current target image frame, where the target image frame is an image frame obtained by photographing a designated area in a vehicle.

[0031] As an example but not limitation, a vehicle (a taxi or online car-hailing vehicle) is provided with a vehicle-mounted camera, which includes a camera device and an image signal processing (ISP) chip. The camera in the camera device captures a specified area in the vehicle in real time to obtain the original image data corresponding to the specified area in the vehicle, and then transmits the original image data to the ISP chip. The ISP chip processes the original image data by a specified image processing technology, and then transmits the processed image data to a terminal device by analog high definition (Analog High Definition, AHD) technology. The terminal device performs image encoding on the image data transmitted by the ISP chip to obtain a corresponding target image frame, and the current target image frame is the latest target image frame. Among them, the specified image processing technology may include: bad pixel calibration, automatic white balance, de-mosaicing, gamma curve adjustment, and image edge adjustment.

[0032] As an example but not limitation, since passengers generally sit in the front passenger seat and / or back seat of a taxi or online car-hailing vehicle, the on-board camera installed in the vehicle may be a first camera and / or a second camera, where the first camera is a camera facing the front passenger seat, that is, the designated area in the vehicle photographed by the first camera is the area where the front passenger seat is located, and the second camera is a camera facing the back seat, that is, the designated area in the vehicle photographed by the second camera is the area where the back seat is located.

[0033] Optionally, before step S101, it includes: receiving an image acquisition instruction, which includes an invoice printing instruction and / or a taxi order completion instruction and / or a dispatch light mode switching instruction and / or a vehicle start instruction.

[0034] Among them, the invoice printing instruction is used to: instruct the terminal device to obtain the current target image frame when the invoice printer starts to print the invoice; the taxi order completion instruction is used to instruct the terminal device to obtain the current target image frame when the latest taxi order is completed; the invoice printing instruction is used to instruct the terminal device to obtain the current target image frame when the mode of the dispatch light is switched from the heavy load mode to the no-load mode, the heavy load mode indicates that there are passengers inside the car where the dispatch light is located, and the no-load mode indicates that there are no passengers inside the car where the dispatch light is located; the vehicle start instruction is used to instruct the terminal device to obtain the current target image frame when the vehicle where the terminal device is located is started.

[0035] Since the time when the invoice printer starts printing the invoice, the time when the latest taxi order is completed, and the time when the dispatch light mode is switched from the heavy-load mode to the unloaded mode are the time when the passenger is about to get off the bus or the passenger has just gotten off the bus and is standing next to the door, the terminal device starts to acquire the current target image at these time points, that is, the terminal device can execute step S101 and the subsequent steps S102 to S103 in a timely manner, that is, when the passenger leaves items on the bus, the passenger can be reminded in a timely manner. In addition, the terminal device only needs to execute step S101 and the subsequent steps S102 to S103 after receiving the image acquisition instruction, so that the amount of calculation of the terminal device can be effectively reduced.

[0036] In addition, the time point when the vehicle where the terminal device is located is started may specifically be the time point when the engine of the vehicle where the terminal device is located starts to ignite.

[0037] The time point when the vehicle where the terminal device is located is started is usually a time point shortly after the passenger gets on the vehicle. At this time point, the terminal device starts to obtain the current target image, and then executes steps S101 to S103, which can avoid the following situation: the terminal device cannot obtain the current target image in time, resulting in the inability to timely remind the passenger when the passenger leaves items on the vehicle. That is, at the time point when the vehicle where the terminal device is located is started, the terminal device starts to obtain the current target image, and then executes steps S101 to S103, which can achieve the following purpose: when the passenger leaves items on the vehicle, the passenger can be reminded in time.

[0038] Step S102, calculating the difference between the current target image frame and the background image, where the background image is an image of a designated area in the vehicle without accommodating passengers and their belongings.

[0039] As an example but not limitation, the difference between the current target image frame and the background image is calculated by a background difference method. The difference can be used to reflect the degree of difference between the current target image frame and the background image.

[0040] Specifically, calculating the difference between the current target image frame and the background image by a background difference method may include the following steps:

[0041] Step a. Calculate the difference between the pixel value of each pixel in the current target image frame and the pixel value of the corresponding pixel in the background image.

[0042] Step b. According to all the differences calculated in step a, determine the number of differences that are greater than or equal to a preset pixel difference.

[0043] Step c. Calculate the difference between the current target image frame and the background image based on the number determined in step b and the total number of pixels in the current target image frame. The difference is the quotient obtained by dividing the determined number by the total number of pixels in the current target image frame, and the difference can be expressed as a percentage.

[0044] As an example but not limitation, assume that the current target image frame and background image each include e*f pixels, e is the number of rows of pixels in the current target image frame and the background image, f is the number of columns of pixels in the current target image frame and the background image, and e and f are both positive integers greater than or equal to 1. Correspondingly, step a may be: calculating the difference between the pixel values ​​of the pixels in the first row and first column of the current target image frame and the pixel values ​​of the pixels in the first row and first column of the background image, calculating the difference between the pixel values ​​of the pixels in the first row and second column of the current target image frame and the pixel values ​​of the pixels in the first row and second column of the background image… and so on, until the difference between the pixel values ​​of the pixels in the eth row and fth column of the current target image frame and the pixel values ​​of the pixels in the eth row and fth column of the background image is calculated. Assuming that the preset pixel difference is 5, only three differences among all the differences calculated in step a are greater than or equal to 5, and the three differences are 5, 9, and 10 respectively. Correspondingly, step b is specifically as follows: from all the differences calculated in step a, determine that the number of differences greater than or equal to the preset pixel difference is 3; assuming that the total number of pixels in the current target image frame is 100, correspondingly, step c is specifically as follows: divide the number 3 determined in step b by the total number of pixels in the current target image frame, 100, to obtain a quotient of 0.03, which can be written as a percentage of 3%, that is, the difference between the current target image frame and the background image is 3%.

[0045] Step S103, if the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, a prompt message is output, wherein the prompt message is used to remind passengers that they have left items on the bus.

[0046] The prompt information is used to remind passengers that they have left items on the bus. Furthermore, the prompt information also includes the type of items, that is, the prompt information is also used to remind passengers of the type of items left on the bus.

[0047] As an example but not limitation, assuming that the preset difference threshold is 3%, the difference between the current target image frame and the background image is 3.5%, and the difference between the previous target image frame and the background image is 30%, it can be considered that the passenger has gotten off the bus and has left items on the bus, and a prompt message is output. For example, the prompt message is used to prompt the passenger that there are items left on the bus, and the type of the item left on the bus is a water cup.

[0048] If the difference between the target image frame and the background image is greater than or equal to the preset difference threshold, it can be explained that there is a significant difference between the designated area in the vehicle corresponding to the target image frame and the designated area in the vehicle corresponding to the background image. Generally, it can be determined that the designated area in the vehicle corresponding to the target image accommodates passengers and / or passenger items. For example, if the difference between the current target image frame and the background image is greater than or equal to the preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, then the difference between the previous target image frame and the background image is greater than the preset difference threshold. It can be seen from the above that the designated area in the vehicle corresponding to the current target image frame and the designated area in the vehicle corresponding to the previous target image frame both accommodate passengers and / or passenger items. Moreover, if the difference between the current target image frame and the background image is smaller than the difference between the previous target image frame and the background image, that is, the difference between the target image and the background image changes from large to small, it can be determined that the designated area inside the car corresponding to the previous target image frame contains passengers and their belongings, and the designated area inside the car corresponding to the current target image frame contains passengers' belongings. Therefore, it can be inferred that: between the shooting time corresponding to the previous target image frame and the shooting time corresponding to the current target image frame, the passenger got off the car and the passenger's belongings were left on the car, and then a prompt message is output to remind the passenger that there are items left on the car.

[0049] In some embodiments, changes in the light outside the vehicle may cause certain interference to the image (frame) corresponding to the designated area inside the vehicle. For example, the camera device photographs the designated area inside the vehicle at time A, time B, and time C respectively. Assuming that there are no passengers and their belongings in the designated area inside the vehicle photographed at time A, time B, and time C, the image taken at time A is used as the background image, the image frame corresponding to time B is used as the previous target image frame, and the image frame corresponding to time C is used as the current target image frame. Since the light outside the vehicle at different times is different, the brightness of the pixels in the images corresponding to the three times is completely different, and the different brightness may cause the difference between the current target image frame and the background image to be greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image. That is, it may be erroneously judged that the passenger has left items in the vehicle, and then the prompt information is erroneously output. Therefore, in order to avoid the interference of the change of the light outside the vehicle on the image (frame) corresponding to the designated area in the vehicle and improve the accuracy of the result of the information prompt method, before step S101, it includes: sending a start instruction to the fill light, the start instruction is used to instruct the fill light to emit infrared light of a specified wavelength to illuminate the designated area in the vehicle; correspondingly, step S101 is specifically: obtaining the image frame obtained by the camera device of the designated area in the vehicle illuminated by the infrared light of the specified wavelength. Correspondingly, the background image is specifically: an image of the designated area in the vehicle illuminated by the infrared light of the specified wavelength without accommodating passengers and their items.

[0050] The camera device may include a camera, a charge-coupled device and an infrared filter, wherein the infrared filter is located between the camera and the charge-coupled device. When the camera shoots a designated area inside a vehicle irradiated by infrared light of a designated wavelength, the infrared light of the designated wavelength reflected by the designated area inside the vehicle can pass through the infrared filter (i.e., the infrared light of the designated wavelength reflected by the designated area inside the vehicle can reach the charge-coupled device and then form an image), while light corresponding to wavelengths other than the designated wavelength (including visible light and ultraviolet light) will be absorbed or reflected by the infrared filter, which is equivalent to the camera device being able to shield light corresponding to wavelengths other than the designated wavelength, thereby ensuring that the image frame obtained by the camera device of the designated area inside the vehicle irradiated by infrared light of the designated wavelength is not interfered with by ultraviolet light and visible light.

[0051] As an example but not limitation, if the start-up information of the camera device is detected, a start-up command is sent to the fill light to instruct the fill light to emit infrared light of a specified wavelength to illuminate a specified area in the vehicle, wherein the specified wavelength includes: 850 nanometers or 940 nanometers. Correspondingly, wavelengths other than the specified wavelength may be wavelengths other than 850 nanometers, or may be wavelengths other than 940 nanometers, specifically may be wavelengths of 640 nanometers.

[0052] In the embodiment of the present application, since the target image frame is an image frame obtained by photographing the designated area in the vehicle, and the background image is an image of the designated area in the vehicle that does not accommodate passengers and passenger items, if the difference between the target image frame and the background image is greater than or equal to the preset difference threshold, it can be explained that there is a significant difference between the designated area in the vehicle corresponding to the target image frame and the designated area in the vehicle corresponding to the background image. Generally, it can be determined that the designated area in the vehicle corresponding to the target image accommodates passengers and / or passenger items. If the difference between the current target image frame and the background image is greater than or equal to the preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, then the difference between the previous target image frame and the background image is greater than the preset difference threshold, from which it can be inferred that the designated area in the vehicle corresponding to the previous target image frame accommodates passengers and passenger items, and the designated area in the vehicle corresponding to the current target image frame accommodates passenger items, and it can be inferred that the passenger items are left in the vehicle. Since a prompt message can be output as soon as it is detected that a passenger's belongings are left on the bus, the passenger can be reminded that there are belongings left on the bus before the passenger has gone far (for example, the passenger has just got off the bus and is standing next to the door). That is, when a passenger leaves belongings on the bus, the passenger can be reminded in time.

[0053] Embodiment 2:

[0054] Corresponding to the above embodiment 1, Figure 2 A schematic diagram of a second information prompt method provided in an embodiment of the present application is shown. Steps S201 and S202 of this embodiment are the same as steps S101 and S102 of the first embodiment, and are not described in detail here.

[0055] Step S201, obtaining a current target image frame, where the target image frame is an image frame obtained by photographing a designated area in a vehicle.

[0056] Step S202, calculating the difference between the current target image frame and the background image, where the background image is an image of a designated area in the vehicle without accommodating passengers and their belongings.

[0057] Step S203, if the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, then an image area where there is a difference between the current target image frame and the background image is captured in the current target image frame.

[0058] Among them, the image area with differences is composed of at least one target pixel, and the target pixel is specifically: the pixel in the current target image frame corresponding to the difference between the pixel values ​​of each pixel in the current target image frame and the pixel values ​​of the pixels in the corresponding background image, which is greater than or equal to the preset pixel difference.

[0059] Assume that the number of rows and columns of pixels in the current target image frame and the background image are both 1 and 3. Assume that the pixel values ​​of the pixels in the first row and first column, the pixel values ​​of the pixels in the first row and second column, and the pixel values ​​of the pixels in the first row and third column in the current target image frame are 54, 56, and 58 respectively, and the pixel values ​​of the pixels in the first row and first column, the pixel values ​​of the pixels in the first row and second column, and the pixel values ​​of the pixels in the first row and third column in the background image are 48, 50, and 58 respectively. Correspondingly, the difference between the pixel values ​​of the pixels in the first row and first column in the current target image frame and the pixel values ​​of the pixels in the first row and first column in the background image is 6. The pixel values ​​of the pixels in the first row and second column in the current target image frame are The difference between the pixel value of the pixel in the first row and second column in the background image is 6, the difference between the pixel value of the pixel in the first row and third column in the current target image frame and the pixel value of the pixel in the first row and third column in the background image is 0, assuming that the preset pixel difference is 5, correspondingly, the pixels in the current target image frame corresponding to the difference greater than or equal to the preset pixel difference include: the pixels in the first row and first column in the current target image frame and the pixels in the first row and second column in the current target image frame, that is, the image area where there is a difference between the current target image frame and the background image includes: the pixels in the first row and first column in the current target image frame and the pixels in the first row and second column in the current target image frame.

[0060] Step S204: recognize the cropped image area according to the trained image recognition model to obtain a corresponding image recognition result.

[0061] Specifically, the cropped image area is input into a trained image recognition model, and the cropped image area is recognized using the trained image recognition model to obtain an output result of the trained image recognition model, which is the image recognition result corresponding to the cropped image area.

[0062] The image recognition result is used to indicate whether the cut-out image area is an image corresponding to the passenger's belongings or a part of the background image.

[0063] Optionally, before step S204, the method includes: collecting image samples corresponding to the designated object, and training the image recognition model according to the image samples to obtain a trained image recognition model.

[0064] Specifically, image samples corresponding to designated objects are collected, the image samples are classified, the classified image samples are labeled, and the image recognition model is trained according to the labeled image samples to obtain a trained image recognition model.

[0065] The designated items may include: items that have been left in designated areas in the car, items that users often carry with them (for example, backpacks, mobile phones, water cups, and umbrellas), and designated areas in the car (such as the passenger seat and / or the back seat, etc.).

[0066] In some embodiments, training an image recognition model based on labeled image samples to obtain a trained image recognition model includes: performing data enhancement processing on the labeled image samples, training the image recognition model using the data enhancement processing results and the labeled image samples before the data enhancement processing to obtain the trained image recognition model, and the data enhancement processing method includes any one or more of the following: cropping, rotating a certain angle, fusion, randomly enhancing the brightness of image samples, and randomly enhancing the contrast of image samples.

[0067] The following example is used to illustrate the processing results of the data enhancement. Assume that the labeled image samples before the data enhancement processing include image sample A. By cropping image sample A, a new image sample can be obtained, which is assumed to be image sample B. By rotating image sample A 90 degrees clockwise, a new image sample can be obtained, which is assumed to be image sample C. That is, the processing results of the data enhancement include image sample B and image sample C.

[0068] Since the image samples can be processed by data enhancement, the number of image samples can be increased, and the larger the number of image samples, the stronger the generalization ability of the trained image recognition model (the trained image recognition model is the trained image recognition model mentioned above), that is, since the image samples are processed by data enhancement, the image recognition model is trained using the processing results of the data enhancement and the labeled image samples before the data enhancement processing, so the generalization ability of the trained image recognition model can be enhanced. Among them, the generalization ability of the trained image recognition model refers to the adaptability of the trained image recognition model to fresh image samples.

[0069] Step S205: If the image recognition result indicates that the captured image area is an image corresponding to the passenger's item, a prompt message is output.

[0070] As an example but not limitation, if the image recognition result can identify the type corresponding to the captured image area, that is, the image recognition result includes information about the type of items left on the vehicle, a prompt message is output, which is used to remind passengers that there are items left on the vehicle, and the prompt message also includes information about the type of the item.

[0071] Optionally, sometimes the designated area in the car will change, and the background image corresponding to the designated area in the car before the change can no longer accurately reflect the designated area in the car after the change. If the background image is not updated in time, the result of the information prompt method may be wrong. For example, assuming that the designated area in the car is the area where the back seat is located, the shape of the back seat changes, and after the shape of the back seat changes, the designated area in the car does not accommodate passengers or passengers' items. If the background image is not updated in time, the difference between the current target image frame obtained by the terminal device after the shape of the back seat changes and the unupdated background image is greater than or equal to a preset difference threshold, and it may be wrongly judged that the passenger has left items in the car, and then the prompt information is wrongly output. Therefore, in order to improve the accuracy of the result of the information prompt method, the information prompt method also includes: if the image recognition result indicates that the cut-out image area is the image area of ​​the background image, the background image is updated according to the cut-out image area.

[0072] As an example but not limitation, if the image recognition result indicates that the cropped image area is the image area of ​​the background image, steps S201 to S204 are re-executed until the image recognition results obtained by the terminal device N times in a row indicate that the corresponding cropped image area is the image area of ​​the background image, and N is a positive integer greater than or equal to one, then the background image is updated based on the most recently cropped image area.

[0073] In the embodiment of the present application, since it is possible to capture the image area where there is a difference between the current target image frame and the background image in the current target image frame, and then identify the captured image area according to the trained image recognition model to obtain the corresponding image recognition result, if the image recognition result indicates that the captured image area is the image corresponding to the passenger's belongings, it can more effectively prove that the passenger has left items on the bus, and the prompt information subsequently output can accurately prompt the passenger.

[0074] Embodiment three:

[0075] Corresponding to the above embodiment 1, Figure 3The schematic diagram of the structure of an information prompting device provided in an embodiment of the present application is shown. The information prompting device is applied to a terminal device, and the information prompting device includes: an image frame acquisition unit 301, a difference calculation unit 302, and an information output unit 303. Among them:

[0076] The image frame acquisition unit 301 is used to acquire a current target image frame, which is an image frame obtained by photographing a designated area in the vehicle.

[0077] Optionally, the information prompting device further includes: an instruction receiving unit.

[0078] The instruction receiving unit is used to receive an image acquisition instruction before the image frame acquisition unit 301 acquires the current target image frame. The image acquisition instruction includes an invoice printing instruction and / or a taxi order completion instruction and / or a dispatch light mode switching instruction and / or a vehicle start instruction.

[0079] Optionally, the information prompting device further includes: an instruction sending unit.

[0080] The instruction sending unit is used to send a start instruction to the fill light before the image frame acquisition unit 301 acquires the current target image frame, and the start instruction is used to instruct the fill light to emit infrared light of a specified wavelength to illuminate a specified area in the vehicle; correspondingly, when the image frame acquisition unit 301 acquires the current target image frame, it is specifically used to acquire an image frame obtained by the camera device of the specified area in the vehicle illuminated by the infrared light of the specified wavelength. Correspondingly, the background image is specifically an image of the specified area in the vehicle illuminated by the infrared light of the specified wavelength without accommodating passengers and their items.

[0081] The difference calculation unit 302 is used to calculate the difference between the current target image frame and the background image, where the background image is an image of a designated area in the vehicle without accommodating passengers and their belongings.

[0082] The information output unit 303 is used to output a prompt message if the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, wherein the prompt message is used to remind passengers that they have left items on the bus.

[0083] Optionally, the information output unit 303 includes: an image capture subunit, a recognition subunit and a prompt information output subunit.

[0084] An image capture subunit is used to capture an image area in the current target image frame where there is a difference between the current target image frame and the background image if the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image.

[0085] The recognition subunit is used to recognize the cropped image area according to the trained image recognition model to obtain the corresponding image recognition result.

[0086] Optionally, the information prompting device further includes: a training unit.

[0087] The training unit is used to: before the recognition subunit recognizes the cropped image area according to the trained image recognition model and obtains the corresponding image recognition result, collect image samples corresponding to the specified object, and train the image recognition model according to the image samples to obtain the trained image recognition model.

[0088] The prompt information output subunit is used to output prompt information if the image recognition result indicates that the cut-out image area is an image corresponding to the passenger's item.

[0089] Optionally, the information prompting device further includes: an updating unit.

[0090] The updating unit is used for updating the background image according to the cut-out image area if the image recognition result indicates that the cut-out image area is the image area of ​​the background image.

[0091] In the embodiment of the present application, since the target image frame is an image frame obtained by photographing the designated area in the vehicle, and the background image is an image of the designated area in the vehicle that does not accommodate passengers and passenger items, if the difference between the target image frame and the background image is greater than or equal to the preset difference threshold, it can be explained that there is a significant difference between the designated area in the vehicle corresponding to the target image frame and the designated area in the vehicle corresponding to the background image. Generally, it can be determined that the designated area in the vehicle corresponding to the target image accommodates passengers and / or passenger items. If the difference between the current target image frame and the background image is greater than or equal to the preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, then the difference between the previous target image frame and the background image is greater than the preset difference threshold, from which it can be inferred that the designated area in the vehicle corresponding to the previous target image frame accommodates passengers and passenger items, and the designated area in the vehicle corresponding to the current target image frame accommodates passenger items, and it can be inferred that the passenger items are left in the vehicle. Since a prompt message can be output as soon as it is detected that a passenger's belongings are left on the bus, the passenger can be reminded that there are belongings left on the bus before the passenger has gone far (for example, the passenger has just got off the bus and is standing next to the door). That is, when a passenger leaves belongings on the bus, the passenger can be reminded in time.

[0092] Embodiment 4:

[0093] Figure 4 This is a schematic diagram of the structure of an information prompt terminal device provided in an embodiment of the present application. Figure 4 As shown, the information prompt terminal device 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the figure) a processor, a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, and when the processor 40 executes the computer program 42, the steps in any of the above-mentioned information prompt method embodiments are implemented.

[0094] The information prompt terminal device 4 can be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The information prompt terminal device may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art can understand that Figure 4 It is only an example of the information prompt terminal device 4 and does not constitute a limitation on the information prompt terminal device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.

[0095] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0096] The memory 41 may be an internal storage unit of the information prompt terminal device 4 in some embodiments, such as a hard disk or memory of the information prompt terminal device 4. The memory 41 may also be an external storage device of the information prompt terminal device 4 in other embodiments, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the information prompt terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the information prompt terminal device 4. The memory 41 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 41 may also be used to temporarily store data that has been output or is to be output.

[0097] It should be noted that the information interaction, execution process and other contents between the above-mentioned units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0098] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0099] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0100] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0101] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, USB flash drive, mobile hard disk, disk or optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0102] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0103] Those of ordinary skill in the art will appreciate 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. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0104] In the embodiments provided in the present application, it should be understood that the disclosed network devices and methods can be implemented in other ways. For example, the network device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0105] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0106] The above embodiment is only used to illustrate the technical solution of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiment, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An information prompting method, characterized in that: The information prompting method is applied to a terminal device, and the information prompting method includes: Acquire a current target image frame, where the target image frame is an image frame obtained by photographing a designated area in the vehicle; Calculating the difference between the current target image frame and a background image, wherein the background image is an image of a designated area in the vehicle without accommodating passengers and their belongings; If the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, a prompt message is output, wherein the prompt message is used to remind passengers that they have left items on the bus.

2. The information prompting method according to claim 1, characterized in that: If the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, outputting prompt information includes: If the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, then an image region where there is a difference between the current target image frame and the background image is intercepted in the current target image frame; The cropped image area is identified according to the trained image recognition model to obtain the corresponding image recognition result; If the image recognition result indicates that the cropped image area is an image corresponding to the passenger's item, a prompt message is output.

3. The information prompting method according to claim 2, characterized in that: The information prompting method further includes: If the image recognition result indicates that the cut-out image region is the image region of the background image, the background image is updated according to the cut-out image region.

4. The information prompting method according to claim 2, characterized in that: Before the cropped image region is identified according to the trained image recognition model to obtain the corresponding image recognition result, the method includes: Collect image samples corresponding to the specified objects; The image recognition model is trained according to the image samples to obtain a trained image recognition model.

5. The information prompting method according to claim 1, characterized in that: Before acquiring the current target image frame, the method includes: Sending a start instruction to the fill light, wherein the start instruction is used to instruct the fill light to emit infrared light of a specified wavelength to illuminate a specified area in the vehicle; Correspondingly, the acquiring of the current target image frame specifically includes: acquiring an image currently captured by the camera device of a designated area in the vehicle irradiated by the infrared light of the designated wavelength.

6. The information prompting method according to claim 1, characterized in that: Before acquiring the current target image frame, the method includes: An image acquisition instruction is received, wherein the image acquisition instruction includes an invoice printing instruction and / or a taxi order completion instruction and / or a dispatch light mode switching instruction and / or a vehicle start instruction.

7. An information prompting device, characterized in that: The information prompting device is applied to a terminal device, and the information prompting device comprises: An image frame acquisition unit, used to acquire a current target image frame, wherein the target image frame is an image frame obtained by photographing a designated area in the vehicle; a difference calculation unit, used to calculate the difference between the current target image frame and a background image, wherein the background image is an image of a designated area in the vehicle without accommodating passengers and their belongings; An information output unit is used to output a prompt message if the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image, wherein the prompt message is used to remind passengers that they have left items on the bus.

8. The information prompting device according to claim 7, characterized in that: The information output unit comprises: An image capture subunit is configured to capture, in the current target image frame, an image region where there is a difference between the current target image frame and the background image, if the difference between the current target image frame and the background image is greater than or equal to a preset difference threshold, and the difference between the current target image frame and the background image is less than the difference between the previous target image frame and the background image; The recognition subunit is used to recognize the cropped image area according to the trained image recognition model to obtain the corresponding image recognition result; The prompt information output subunit is used to output prompt information if the image recognition result indicates that the cut-out image area is an image corresponding to the passenger's item.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.