Vehicle picture shooting method and device, terminal equipment and computer medium
By determining whether the vehicle image is within the standard camera area and adjusting the shooting angle in the image acquisition device, the integrity of the vehicle image is ensured, which solves the problem of incomplete vehicle images in parking lot management and improves the recognition rate and information entry efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD
- Filing Date
- 2022-11-10
- Publication Date
- 2026-06-05
AI Technical Summary
In existing parking management systems, there is a lack of unified photo standards when car owners manually enter vehicle information, resulting in images that cannot fully contain vehicle and parking space information, which reduces parking management efficiency and user experience.
The image acquisition device determines whether the vehicle image is within the preset standard camera area, calculates and adjusts the shooting angle difference, and ensures that the image acquisition device captures vehicle images at the standard angle, thereby achieving the acquisition of vehicle images from the same shooting angle.
It improves the vehicle recognition rate of the parking management system, increases the efficiency of users entering vehicle information, and solves the problem of recognition difficulties caused by incomplete vehicle images.
Smart Images

Figure CN115830877B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to a method, apparatus, terminal device, and computer-readable storage medium for taking vehicle images. Background Technology
[0002] With the rapid development of the automotive industry, the demand for parking spaces from car owners is constantly increasing, thus posing an increasingly greater challenge to parking lot management.
[0003] Currently, parking lot management primarily relies on vehicle information entered by car owners. This involves car owners manually entering vehicle information such as brand, model, and license plate number, and requiring them to take photos of the vehicle and upload them before the parking lot can manage it. This results in a cumbersome management process. Furthermore, the lack of standardized photo-taking criteria means that images taken by car owners often fail to include complete vehicle and parking space information. Consequently, parking lot managers are unable to identify car owners and vehicles based on the images, significantly diminishing the parking experience for car owners. Summary of the Invention
[0004] This invention provides a method, apparatus, terminal device, and computer-readable storage medium for capturing vehicle images. The aim is to enable the terminal device to obtain vehicle images with the same shooting angle when shooting different vehicles, thereby improving the recognition rate of target vehicles in the parking management system and increasing the efficiency of users entering vehicle information.
[0005] This invention provides a method for capturing vehicle images. The method is applied to a terminal device equipped with an image acquisition device, and the method for capturing vehicle images includes the following steps:
[0006] The image acquisition device is controlled to capture the image to be adjusted, and it is determined whether the first vehicle image in the image to be adjusted is within a preset standard camera area;
[0007] If it is determined that the first vehicle image is within the standard camera area, then the first shooting angle value of the image acquisition device is determined based on the image to be adjusted, and the angle difference between the first shooting angle value and the preset standard angle value is calculated.
[0008] An adjustment command is generated based on the angle difference, and the first shooting angle value is corrected according to the adjustment command to obtain the second shooting angle value;
[0009] The image acquisition device is controlled to capture the target image according to the second shooting angle value.
[0010] Further, the step of determining whether the first vehicle image in the image to be adjusted is within a preset standard camera area includes:
[0011] The first vehicle image in the image to be adjusted is compared with a preset standard camera area to obtain the percentage of the first vehicle image in the standard camera area;
[0012] The image proportion value is compared with the preset standard proportion value to obtain the first comparison result;
[0013] Based on the first comparison result, it is determined whether the first vehicle image is within the standard camera area.
[0014] Further, the step of determining whether the first vehicle image is within the standard camera area based on the first comparison result includes:
[0015] When the first comparison result is that the image proportion value is less than the standard proportion value, it is determined that the first vehicle image is not within the standard camera area;
[0016] When the first comparison result is that the image proportion value is greater than or equal to the standard proportion value, it is determined that the first vehicle image is within the standard camera area.
[0017] Furthermore, the step of determining whether the first vehicle image in the image to be adjusted is within a preset standard camera area also includes:
[0018] Determine the vehicle image area corresponding to the first vehicle image in the image to be adjusted and the environment image area corresponding to the first environment image in the image to be adjusted;
[0019] Based on the vehicle image area and the environment image area, it is determined whether the first vehicle image is within the standard camera area.
[0020] Further, the step of determining whether the first vehicle image is within the standard camera area based on the vehicle image area and the environment image area includes:
[0021] The vehicle area ratio of the first vehicle image to the first environment image is determined based on the vehicle image area and the environment image area.
[0022] Obtain a preset standard vehicle proportion value, and compare the vehicle area proportion value with the standard vehicle proportion value to obtain a second comparison result;
[0023] When the second comparison result is that the vehicle area ratio is greater than the standard vehicle ratio, it is determined that the first vehicle image is not within the standard camera area.
[0024] When the second comparison result is that the vehicle area ratio is less than or equal to the standard vehicle ratio, it is determined that the first vehicle image is within the standard camera area.
[0025] Further, the step of determining the first shooting angle value of the image acquisition device based on the image to be adjusted includes:
[0026] Extract the image feature data of each element in the image to be adjusted;
[0027] The first shooting angle value of the image acquisition device is determined based on the image feature data.
[0028] Further, the step of generating adjustment commands based on the angle difference includes:
[0029] The target angle adjustment value and the target distance adjustment value are determined based on the angle difference.
[0030] Generate adjustment commands corresponding to the target angle adjustment value and the target distance adjustment value.
[0031] Furthermore, to achieve the above objectives, the present invention also provides a vehicle image capturing device, which is applied to a terminal device equipped with an image acquisition device, the device comprising:
[0032] The image comparison module is used to control the image acquisition device to capture the image to be adjusted and to determine whether the first vehicle image in the image to be adjusted is within a preset standard camera area;
[0033] An angle comparison module is used to determine the first shooting angle value of the image acquisition device based on the image to be adjusted if it is determined that the first vehicle image is within the standard camera area, and to calculate the angle difference between the first shooting angle value and the preset standard angle value.
[0034] The instruction generation module is used to generate an adjustment instruction based on the angle difference, and to correct the first shooting angle value according to the adjustment instruction to obtain a second shooting angle value.
[0035] An image acquisition module is used to control the image acquisition device to capture a target image according to the second shooting angle value.
[0036] In addition, to achieve the above objectives, the present invention also provides a terminal device, the terminal device comprising: a memory, a processor, and a vehicle image capturing program stored in the memory and executable on the processor, wherein when the vehicle image capturing program is executed by the processor, it implements the steps of the vehicle image capturing method described above.
[0037] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a vehicle image capturing program, wherein when the vehicle image capturing program is executed by a processor, it implements the steps of the vehicle image capturing method described above.
[0038] The vehicle image capturing method, apparatus, terminal device, and computer-readable storage medium provided in this invention are applied to a terminal device equipped with an image acquisition device. The method involves controlling the image acquisition device to capture an image to be adjusted, and determining whether a first vehicle image in the image to be adjusted is within a preset standard camera area. If the first vehicle image is determined to be within the standard camera area, a first shooting angle value of the image acquisition device is determined based on the image to be adjusted, and the angle difference between the first shooting angle value and the preset standard angle value is calculated. An adjustment command is generated based on the angle difference, and the first shooting angle value is corrected according to the adjustment command to obtain a second shooting angle value. The image acquisition device is then controlled to capture a target image according to the second shooting angle value.
[0039] In this embodiment, the terminal device first receives a shooting command triggered by the user during operation, and controls the image acquisition device configured within the terminal device to capture an image to be adjusted containing a first environmental image and a first vehicle image according to the shooting command. Simultaneously, the terminal device reads the storage device to obtain a standard camera area preset by the technician, and inputs the image to be adjusted and the standard camera area into the image processing device configured within the terminal device. The image processing device determines whether the first vehicle image contained in the image to be adjusted is within the standard camera area. If the terminal device determines that the first vehicle image is within the standard camera area, the terminal device determines the first shooting angle value of the image acquisition device through the image processing device, and inputs the first shooting angle value and the standard angle value preset by the technician together into the data processing device configured within the terminal device. The data processing device obtains the angle difference between the first shooting angle value and the standard angle value. Then, the terminal device generates an adjustment command based on the angle difference, and adjusts the first shooting angle value to a second shooting angle value according to the adjustment command. Finally, the terminal device controls the image acquisition device to capture a target image containing a second environmental image and a second vehicle image according to the second shooting angle.
[0040] Thus, this invention employs a method of determining whether the first vehicle image in the image to be adjusted is within a preset standard camera area, and determining the first camera angle value of the image acquisition device. Then, an adjustment command is generated based on the angle difference between the first camera angle value and the preset standard angle value. In other words, this invention utilizes a preset standard camera area to ensure that the first vehicle image acquired by the image acquisition device is within a certain range, thereby ensuring that the image taken by the car owner contains all vehicle information and parking space information. Simultaneously, by generating an adjustment command based on the angle difference between the first camera angle value and the standard angle value, it ensures that vehicles in images taken by different users are all at the same angle. This solves the problem that parking lot managers or management systems cannot identify car owners and vehicles based on images, achieving the technical effect that terminal devices can obtain vehicle images with the same shooting angle when shooting different vehicles. This improves the recognition rate of target vehicles by the parking lot management system and increases the efficiency of users entering vehicle information. Attached Figure Description
[0041] Figure 1 This is a schematic diagram of the structure of the terminal device in the hardware operating environment involved in the embodiments of the present invention;
[0042] Figure 2 This is a flowchart illustrating the first embodiment of the vehicle image capturing method of the present invention;
[0043] Figure 3 This is a schematic diagram of adjustment commands involved in an embodiment of the vehicle image capturing method of the present invention;
[0044] Figure 4 This is a schematic diagram of the functional modules involved in an embodiment of the vehicle image capturing method of the present invention.
[0045] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0046] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0047] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the terminal device structure of the hardware operating environment involved in the embodiments of the present invention.
[0048] It should be noted that, Figure 1This can be a structural diagram of the hardware operating environment of the terminal device. In this embodiment of the invention, the terminal device can be an image acquisition device with image acquisition function that executes the vehicle image capturing method provided by this invention. Specifically, the terminal device can be a mobile terminal, a data storage and control terminal, a PC, or a portable computer, etc.
[0049] like Figure 1 As shown, the terminal device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0050] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the terminal device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0051] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a vehicle image capturing program.
[0052] exist Figure 1 In the terminal device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the terminal device of the present invention can be set in the terminal device. The terminal device calls the vehicle image shooting program stored in the memory 1005 through the processor 1001 and executes the vehicle image shooting method provided in the embodiment of the present invention.
[0053] Based on the aforementioned terminal device, various embodiments of the vehicle image capturing method of the present invention are provided.
[0054] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the vehicle image capturing method of the present invention.
[0055] It should be understood that although the logical order is shown in the flowchart, in some cases, the method for taking vehicle pictures of the present invention may of course be performed in a different order than that shown or described here.
[0056] In this embodiment, the method for capturing vehicle images according to the present invention may include the following steps:
[0057] Step S10: Control the image acquisition device to capture the image to be adjusted, and determine whether the first vehicle image in the image to be adjusted is within the preset standard camera area;
[0058] In this embodiment, when the standard camera area terminal device controls the image acquisition device to capture images of the target vehicle and the target parking space, the display area of the vehicle image corresponding to the target vehicle in the standard image obtained, which contains vehicle information of the target vehicle and parking space information of the target parking space, can be determined by technicians through experiments and stored in the memory before the terminal device leaves the factory so that the terminal device can directly read the local memory to obtain the standard camera area when needed. Of course, there are many ways to obtain and set the standard camera area, and the present invention does not limit this.
[0059] For example, when the terminal device is running, it first receives a camera instruction triggered by the user, and takes a picture of the target parking space where the target vehicle is parked according to the camera instruction to obtain an image to be adjusted composed of a first environmental image and a first vehicle image. At the same time, the terminal device reads the storage device to obtain the standard camera area, and inputs the obtained image to be adjusted and the standard camera area together into the image processing device configured in the terminal device. The image processing device determines whether the first vehicle image contained in the image to be adjusted is within the standard camera area.
[0060] Furthermore, in a feasible embodiment, the step of "determining whether the first vehicle image in the image to be adjusted is within a preset standard camera area" in step S10 above may specifically include:
[0061] Step S101: Compare the first vehicle image in the image to be adjusted with a preset standard camera area to obtain the percentage of the first vehicle image in the standard camera area;
[0062] Step S102: Compare the image proportion value with the preset standard proportion value to obtain the first comparison result;
[0063] Step S103: Based on the first comparison result, determine whether the first vehicle image is within the standard camera area;
[0064] In this embodiment, the image proportion value is the area of the first vehicle image overlapping the standard camera area when the image to be adjusted overlaps with the standard image containing the standard camera area. This area value is expressed as a percentage. Of course, this area value can also be expressed using other types of values, and the present invention does not limit this. Similarly, the standard proportion value is the minimum image area proportion of the first vehicle image corresponding to the target vehicle in the image to be adjusted when the vehicle information of the target vehicle and the parking space information of the target parking space can be obtained. Of course, there are many ways to obtain this standard proportion value, and the present invention does not limit this either.
[0065] For example, after the terminal device inputs the acquired image to be adjusted and the standard camera area together into the image processing device, the image processing device extracts the first vehicle image contained in the image to be adjusted and compares the first vehicle image with the standard camera area to determine the image proportion value of the first vehicle image in the standard camera area. At the same time, the terminal device reads the memory to obtain the standard proportion value pre-stored by the technician, and inputs the image proportion value and the standard proportion value together into the data processing device configured in the terminal device. The data processing device compares the image proportion value and the standard proportion value to obtain a first comparison result. The data processing device then determines whether the first vehicle image is within the standard camera area based on the first comparison result.
[0066] It should be noted that, in this embodiment, the value of the standard percentage can be modified and set by technicians according to actual needs, and the standard percentage can be stored in the memory by technicians before leaving the factory so that the terminal device can directly read it when needed, or it can be stored in the server by technicians so that the terminal device can directly obtain the value remotely when needed. This invention does not limit this.
[0067] Furthermore, in a feasible embodiment, step S103 above may specifically include:
[0068] Step S1031: When the first comparison result is that the image proportion value is less than the standard proportion value, it is determined that the first vehicle image is not within the standard camera area;
[0069] Step S1032: When the first comparison result is that the image proportion value is greater than or equal to the standard proportion value, it is determined that the first vehicle image is within the standard camera area;
[0070] For example, when the data processing device determines that the first comparison result is that the image proportion value is less than the standard proportion value, the data processing device determines that the first vehicle image is not within the standard camera area and uploads the result to the terminal device. Similarly, when the first comparison result is that the image proportion value is greater than or equal to the standard proportion value, the data processing device determines that the first vehicle image is within the standard camera area.
[0071] Furthermore, in a feasible embodiment, the step of "determining whether the first vehicle image in the image to be adjusted is within a preset standard camera area" in step S10 above may further include:
[0072] Step S104: Determine the vehicle image area corresponding to the first vehicle image in the image to be adjusted and the environment image area corresponding to the first environment image in the image to be adjusted;
[0073] Step S105: Determine whether the first vehicle image is within the standard camera area based on the vehicle image area and the environment image area;
[0074] For example, after the terminal device inputs the acquired image to be adjusted and the standard camera area together into the image processing device, the image processing device extracts the first vehicle image and the first environment image contained in the image to be adjusted, and determines the vehicle image area value corresponding to the first vehicle image and the environment image area value corresponding to the first environment image. Then, the terminal device inputs the vehicle image area value and the environment image area value together into the data processing device, and the data processing device determines whether the first vehicle image is within the standard camera area based on the vehicle image area value and the environment image area value.
[0075] Furthermore, in a feasible embodiment, step S105 above may specifically include:
[0076] Step S1051: Determine the vehicle area ratio of the first vehicle image relative to the first environment image based on the vehicle image area and the environment image area.
[0077] Step S1052: Obtain a preset standard vehicle proportion value, and compare the vehicle area proportion value with the standard vehicle proportion value to obtain a second comparison result;
[0078] Step S1053: When the second comparison result is that the vehicle area ratio is greater than the standard vehicle ratio, it is determined that the first vehicle image is not within the standard camera area;
[0079] Step S1054: When the second comparison result is that the vehicle area ratio is less than or equal to the standard vehicle ratio, it is determined that the first vehicle image is within the standard camera area;
[0080] In this embodiment, the standard vehicle proportion value is the maximum area that the target vehicle should occupy in the image to be adjusted when the target vehicle and the target parking space can be captured. The standard vehicle proportion value is expressed as a percentage in this embodiment. Of course, the standard vehicle proportion value can also be expressed in other forms, and the present invention does not limit it.
[0081] For example, the terminal device inputs the acquired image to be adjusted to the image processing device. The image processing device first extracts the image features contained in the image to be adjusted to determine the areas occupied by the first environment image and the first vehicle image in the image to be adjusted, and determines the environment image area corresponding to the first environment image and the vehicle image area corresponding to the first vehicle image. Then, the terminal device inputs the environment image area and the vehicle image area to the data processing device. At the same time, the terminal device reads the memory to obtain the standard vehicle ratio value pre-stored by the technician, and also inputs the standard vehicle ratio value to the data processing device. The data processing device then compares the area of the environmental image with the area of the vehicle image to obtain the vehicle area ratio of the first vehicle image relative to the first environmental image. The data processing device then compares the vehicle area ratio with the standard area ratio to obtain a second comparison result. When the second comparison result is that the vehicle area ratio is greater than the standard area ratio, the terminal device determines that the first vehicle image is not within the standard camera area. Similarly, when the second comparison result is that the vehicle area ratio is less than or equal to the standard area ratio, the terminal device determines that the first vehicle image is within the standard camera area.
[0082] Step S20: If it is determined that the first vehicle image is within the standard camera area, then the first shooting angle value of the image acquisition device is determined according to the image to be adjusted, and the angle difference between the first shooting angle value and the preset standard angle value is calculated.
[0083] In this embodiment, the first shooting angle value is the angle between the image acquisition device of the terminal device and the centerline of the target vehicle when the terminal device takes pictures of the target vehicle and the target parking space.
[0084] The standard angle value is the angle at which the terminal device is positioned when it can capture vehicle information containing the target vehicle and parking space information containing the target parking space. Of course, the standard angle value can also be a range of values. It should be noted that there are many ways to obtain and set the standard angle value, and this invention does not limit it.
[0085] For example, when the terminal device determines that the first vehicle image in the image to be adjusted is within the standard camera area, the terminal device calls the image processing device to determine the first shooting angle value of the terminal device based on the image to be adjusted. At the same time, the terminal device obtains the standard angle value and calculates the angle difference between the first shooting angle value and the standard angle value through the data processing device.
[0086] Furthermore, in a feasible embodiment, the step of "determining the first shooting angle value of the image acquisition device based on the image to be adjusted" in step S20 above may specifically include:
[0087] Step S201: Extract image feature data from the image to be adjusted;
[0088] In this embodiment, the terminal device invokes the aforementioned image processing device to process the image to be adjusted in order to extract the image feature data contained in the image to be adjusted.
[0089] Step S202: Determine the first shooting angle value of the image acquisition device based on the image feature data;
[0090] In this embodiment, the terminal device compares each of the above-mentioned image feature data with each of the preset standard image features to determine the feature difference between each image feature and the standard feature, and then the terminal device determines the first shooting angle value based on each feature difference.
[0091] For example, the terminal device calls the image processing device to process the image to be adjusted to obtain image feature data within the image to be adjusted. At the same time, the terminal device reads the memory to obtain standard image feature data pre-stored by the technician. Then, the terminal device uses the image processing device to determine the feature difference between each image feature data and the standard image feature data corresponding to each image feature data. The terminal device then determines the first shooting angle value based on each feature difference.
[0092] It should be noted that, in this embodiment, when the standard image feature data terminal device can simultaneously capture the target vehicle and the target parking space and obtain a standard image, the standard image contains various image feature data. Of course, the standard image feature data can be one data or multiple data, and the present invention does not limit this.
[0093] Step S30: Generate an adjustment command based on the angle difference, and correct the first shooting angle value according to the adjustment command to obtain the second shooting angle value;
[0094] For example, the terminal device inputs the acquired angle difference value to the data processing device, which determines an adjustment command based on the angle difference value. The terminal device then adjusts the shooting angle of the image acquisition device from the first shooting angle value to the second shooting angle value corresponding to the adjustment command according to the adjustment command.
[0095] Furthermore, in a feasible embodiment, the step of "generating adjustment commands based on the angle difference" in step S30 above may specifically include:
[0096] Step S301: Determine the target angle adjustment value and the target distance adjustment value based on the angle difference;
[0097] Step S302: Generate adjustment commands corresponding to the target angle adjustment value and the target distance adjustment value;
[0098] For example, the terminal device inputs the acquired angle difference value to the data processing device, which determines the change value of the shooting angle that the image acquisition device needs to adjust based on the angle difference value, and determines the change value as the target angle adjustment value. At the same time, the data processing device determines the change value of the shooting distance that the image acquisition device needs to adjust, and determines the change value of the distance as the target distance adjustment value. Then, the data processing device generates an adjustment command based on the target angle adjustment value and the target distance adjustment value, and uploads the adjustment command to the terminal device.
[0099] Step S40: Control the image acquisition device to capture the target image according to the second shooting angle value;
[0100] In this embodiment, the terminal device controls the image acquisition device to move according to the adjustment command, so that the shooting angle of the image acquisition device is changed to the second shooting angle value. The terminal device then controls the image acquisition device to take pictures of the target vehicle and the target parking space to obtain the target image.
[0101] For example, after receiving the adjustment instruction, the terminal device controls the image acquisition device to move according to the target angle adjustment value and target distance adjustment value contained in the adjustment instruction, so that the shooting angle of the image acquisition device changes from the first shooting angle value to the second shooting angle value. Then, the terminal device controls the image acquisition device to take pictures of the target vehicle and the target parking space again according to the second shooting angle value, so as to obtain a target image containing a second vehicle image and a second environment image.
[0102] It should be noted that, please refer to Figure 3 , Figure 3 This is a schematic diagram of an adjustment command related to an embodiment of the vehicle image capturing method of the present invention. In this embodiment, the terminal device can generate the adjustment command as shown below. Figure 3 The visual interface shown is displayed to the user of the terminal device via a display device configured within the terminal device, allowing the user to access information such as... Figure 3 The user interface shown allows for manual adjustment of the image acquisition device to obtain the target image.
[0103] In this embodiment, when the terminal device is running, it first receives a camera command triggered by the user and takes a picture of the target parking space where the target vehicle is parked according to the camera command to obtain an image to be adjusted composed of a first environmental image and a first vehicle image. At the same time, the terminal device reads the storage device to obtain the standard camera area, and inputs the obtained image to be adjusted and the standard camera area together into the image processing device configured in the terminal device. The image processing device determines whether the first vehicle image contained in the image to be adjusted is within the standard camera area. Then, when the terminal device determines that the first vehicle image in the image to be adjusted is within the standard camera area, the terminal device calls the image processing device to determine the first shooting angle of the terminal device based on the image to be adjusted. The terminal device then acquires a standard angle value and calculates the angle difference between the first shooting angle value and the standard angle value using the data processing device. The terminal device then inputs the acquired angle difference to the data processing device, which determines an adjustment command based on the angle difference. The terminal device adjusts the shooting angle of the image acquisition device from the first shooting angle value to a second shooting angle value corresponding to the adjustment command. Finally, the terminal device controls the image acquisition device to move according to the adjustment command, changing the shooting angle of the image acquisition device to the second shooting angle value. The terminal device then controls the image acquisition device to capture images of the target vehicle and the target parking space to obtain a target image.
[0104] Thus, this invention employs a method of determining whether the first vehicle image in the image to be adjusted is within a preset standard camera area, and determining the first camera angle value of the image acquisition device. Then, an adjustment command is generated based on the angle difference between the first camera angle value and the preset standard angle value. In other words, this invention utilizes a preset standard camera area to ensure that the first vehicle image acquired by the image acquisition device is within a certain range, thereby ensuring that the image taken by the car owner contains all vehicle information and parking space information. Simultaneously, by generating an adjustment command based on the angle difference between the first camera angle value and the standard angle value, it ensures that vehicles in images taken by different users are all at the same angle. This solves the problem that parking lot managers or management systems cannot identify car owners and vehicles based on images, achieving the technical effect that terminal devices can obtain vehicle images with the same shooting angle when shooting different vehicles. This improves the recognition rate of target vehicles by the parking lot management system and increases the efficiency of users entering vehicle information.
[0105] Furthermore, the present invention also provides a vehicle image capturing device, which is applied to a terminal device equipped with an image acquisition device. Please refer to [reference needed]. Figure 4 , Figure 4 This is a schematic diagram of the functional modules involved in an embodiment of the vehicle image capturing method of the present invention, as shown below. Figure 4 As shown, the vehicle image capturing device of the present invention includes:
[0106] The image comparison module 10 is used to control the image acquisition device to capture the image to be adjusted and to determine whether the first vehicle image in the image to be adjusted is within a preset standard camera area.
[0107] Angle comparison module 20 is used to determine the first shooting angle value of the image acquisition device based on the image to be adjusted if it is determined that the first vehicle image is within the standard camera area, and to calculate the angle difference between the first shooting angle value and the preset standard angle value.
[0108] The instruction generation module 30 is used to generate an adjustment instruction based on the angle difference, and to correct the first shooting angle value according to the adjustment instruction to obtain a second shooting angle value.
[0109] The image acquisition module 40 is used to control the image acquisition device to capture the target image according to the second shooting angle value.
[0110] Furthermore, the image comparison module 10 includes:
[0111] The first calculation unit is used to compare the first vehicle image in the image to be adjusted with a preset standard camera area to obtain the image ratio of the first vehicle image in the standard camera area;
[0112] The first comparison unit is used to compare the image proportion value with a preset standard proportion value to obtain a first comparison result;
[0113] The first judgment unit is used to determine whether the first vehicle image is within the standard camera area based on the first comparison result.
[0114] Furthermore, the first judgment unit includes:
[0115] The first determination result subunit is used to determine that the first vehicle image is not within the standard camera area when the first comparison result is that the image proportion value is less than the standard proportion value.
[0116] The second determination result subunit is used to determine that the first vehicle image is within the standard camera area when the first comparison result is that the image proportion value is greater than or equal to the standard proportion value.
[0117] Furthermore, the image comparison module 10 also includes:
[0118] The second calculation unit is used to determine the vehicle image area corresponding to the first vehicle image in the image to be adjusted and the environment image area corresponding to the first environment image in the image to be adjusted.
[0119] The second judgment unit is used to determine whether the first vehicle image is within the standard camera area based on the vehicle image area and the environment image area.
[0120] Furthermore, the second judgment unit includes:
[0121] The proportion area calculation subunit is used to determine the proportion value of the vehicle area of the first vehicle image relative to the first environment image based on the vehicle image area and the environment image area.
[0122] The area ratio comparison subunit is used to obtain a preset standard vehicle ratio value and compare the vehicle area ratio value with the standard vehicle ratio value to obtain a second comparison result;
[0123] The third result determination subunit is used to determine that the first vehicle image is not within the standard camera area when the second comparison result is that the vehicle area ratio is greater than the standard vehicle ratio.
[0124] The fourth result determination subunit is used to determine that the first vehicle image is within the standard camera area when the second comparison result is that the vehicle area ratio is less than or equal to the standard vehicle ratio.
[0125] Furthermore, the angle comparison module 20 includes:
[0126] The feature extraction unit is used to extract image feature data within the image to be adjusted;
[0127] An angle calculation unit is used to determine the first shooting angle value of the image acquisition device based on the image feature data.
[0128] Furthermore, the instruction generation module 30 includes:
[0129] An adjustment calculation unit is used to determine the target angle adjustment value and the target distance adjustment value based on the angle difference;
[0130] The instruction generation unit is used to generate adjustment instructions corresponding to the target angle adjustment value and the target distance adjustment value.
[0131] In addition, the present invention also provides a terminal device having a vehicle image capturing program that can run on a processor. When the terminal device executes the vehicle image capturing program, it implements the steps of the vehicle image capturing method as described in any of the above embodiments.
[0132] The specific embodiments of the terminal device of the present invention are basically the same as the embodiments of the vehicle image shooting method described above, and will not be repeated here.
[0133] Furthermore, the present invention also provides a computer-readable storage medium storing a vehicle image capturing program, which, when executed by a processor, implements the steps of the vehicle image capturing method as described in any of the above embodiments.
[0134] The specific embodiments of the computer-readable storage medium of this invention are basically the same as the embodiments of the vehicle image taking method described above, and will not be repeated here.
[0135] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0136] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0137] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which can be a terminal device for an image acquisition device with image acquisition function and executing the vehicle image shooting method provided by the present invention, specifically a mobile terminal, data storage control terminal, PC, or portable computer, etc.) to execute the methods described in the various embodiments of the present invention.
[0138] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for taking vehicle images, characterized in that, The method is applied to a terminal device equipped with an image acquisition device, and the method for capturing vehicle images includes the following steps: The image acquisition device is controlled to capture the image to be adjusted, and it is determined whether the first vehicle image in the image to be adjusted is within a preset standard camera area; If it is determined that the first vehicle image is within the standard camera area, then the first shooting angle value of the image acquisition device is determined according to the image to be adjusted, and the angle difference between the first shooting angle value and the preset standard angle value is calculated. The standard angle value is the shooting angle value of the terminal device when it can capture vehicle information containing the first vehicle and parking space information containing the first parking space. Based on the angle difference, an adjustment instruction containing a target angle adjustment value and a target distance adjustment value is generated, and the first shooting angle value is corrected according to the adjustment instruction to obtain a second shooting angle value; The image acquisition device is controlled to capture the target image according to the second shooting angle value; The step of determining the first shooting angle value of the image acquisition device based on the image to be adjusted includes: Extract the image feature data of each element in the image to be adjusted; The first shooting angle value of the image acquisition device is determined based on the image feature data.
2. The method for taking vehicle images as described in claim 1, characterized in that, The step of determining whether the first vehicle image in the image to be adjusted is within a preset standard camera area includes: The first vehicle image in the image to be adjusted is compared with a preset standard camera area to obtain the percentage of the first vehicle image in the standard camera area; The image proportion value is compared with the preset standard proportion value to obtain the first comparison result; Based on the first comparison result, it is determined whether the first vehicle image is within the standard camera area.
3. The method for taking vehicle images as described in claim 2, characterized in that, The step of determining whether the first vehicle image is within the standard camera area based on the first comparison result includes: When the first comparison result is that the image proportion value is less than the standard proportion value, it is determined that the first vehicle image is not within the standard camera area; When the first comparison result is that the image proportion value is greater than or equal to the standard proportion value, it is determined that the first vehicle image is within the standard camera area.
4. The method for taking vehicle images as described in claim 2, characterized in that, The step of determining whether the first vehicle image in the image to be adjusted is within a preset standard camera area further includes: Determine the vehicle image area corresponding to the first vehicle image in the image to be adjusted and the environment image area corresponding to the first environment image in the image to be adjusted; Based on the vehicle image area and the environment image area, it is determined whether the first vehicle image is within the standard camera area.
5. The method for taking vehicle images as described in claim 4, characterized in that, The step of determining whether the first vehicle image is within the standard camera area based on the vehicle image area and the environment image area includes: The vehicle area ratio of the first vehicle image to the first environment image is determined based on the vehicle image area and the environment image area. Obtain a preset standard vehicle proportion value, and compare the vehicle area proportion value with the standard vehicle proportion value to obtain a second comparison result; When the second comparison result is that the vehicle area ratio is greater than the standard vehicle ratio, it is determined that the first vehicle image is not within the standard camera area. When the second comparison result is that the vehicle area ratio is less than or equal to the standard vehicle ratio, it is determined that the first vehicle image is within the standard camera area.
6. A device for capturing vehicle images, characterized in that, The vehicle image capturing device is applied to a terminal device equipped with an image acquisition device, and the device includes: The image comparison module is used to control the image acquisition device to capture the image to be adjusted and to determine whether the first vehicle image in the image to be adjusted is within a preset standard camera area; An angle comparison module is used to determine the first shooting angle value of the image acquisition device based on the image to be adjusted if it is determined that the first vehicle image is within the standard camera area, and to calculate the angle difference between the first shooting angle value and the preset standard angle value, wherein the standard angle value is the shooting angle value of the terminal device when it can capture vehicle information containing the first vehicle and parking space information containing the first parking space. Based on the angle difference, an adjustment instruction containing a target angle adjustment value and a target distance adjustment value is generated, and the first shooting angle value is corrected according to the adjustment instruction to obtain a second shooting angle value; The image acquisition module is used to control the image acquisition device to capture the target image according to the second shooting angle value; The angle comparison module includes: The feature extraction unit is used to extract image feature data within the image to be adjusted; An angle calculation unit is used to determine the first shooting angle value of the image acquisition device based on the image feature data.
7. A terminal device, characterized in that, The terminal device includes: a memory, a processor, and a vehicle image capturing program stored in the memory and executable on the processor. When the vehicle image capturing program is executed by the processor, it implements the steps of the vehicle image capturing method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a vehicle image capturing program, which, when executed by a processor, implements the steps of the vehicle image capturing method as described in any one of claims 1 to 5.