Image shooting method and device, image loss assessment method, mobile equipment and storage medium
By determining the position, speed and jitter information on the mobile device, setting the target jitter threshold, and collecting images when the jitter offset is less than the threshold, the problems of low image shooting quality and low loss efficiency are solved, and higher quality image shooting and more efficient loss-based process are achieved.
Patent Information
- Application Number
- CN202411745499.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-11-28
AI Technical Summary
In the prior art, the low quality of image shooting and low loss efficiency are mainly due to poor image quality caused by the jitter and too fast speed of the mobile device during shooting.
By determining the current position information, current speed information and current jitter offset of the mobile device, and determining the target jitter offset threshold based on this information, image shooting and acquisition are performed when the jitter offset is less than the threshold to ensure image quality.
This improves image quality and reduces the impact of mobile device jitter on image quality, thereby improving the efficiency of image loss measurement.
Smart Images

Figure CN119562158A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to an image capturing method, an apparatus, an image damage assessment method, a mobile device, and a storage medium. Background Art
[0002] In order to improve the efficiency of damage assessment, intelligent damage assessment based on images is very effective and convenient in many cases, especially in the fields of insurance claims, law enforcement, engineering monitoring and product quality control. The quality of the captured images is critical to the accuracy of the damage assessment results. In order to improve the image quality, the blurred video frames or video frames with light spots in the captured video are detected based on the quality detection method, so as to extract the video frames other than the blurred or light spots from the video and capture them to obtain the event image used as the damage assessment certificate. However, the image quality of the image obtained by the above image processing method is still low, which reduces the efficiency of damage assessment. Summary of the invention
[0003] The present invention provides an image shooting method, an apparatus, an image damage assessment method, a mobile device and a storage medium, so as to at least solve the problems of low quality of images shot and low damage assessment efficiency in the related art. The technical solution of the present invention is as follows:
[0004] According to a first aspect of an embodiment of the present invention, there is provided an image shooting method, the method comprising: determining current position information, current speed information and current jitter offset of a mobile device; determining a target jitter offset threshold corresponding to the current position information and current speed information according to a mapping relationship between the position information and speed information and the jitter offset threshold; and when the current jitter offset is less than the target jitter offset threshold, controlling the mobile device to perform image shooting and image acquisition to obtain a target image.
[0005] In one implementation, after determining the target jitter offset threshold corresponding to the current position information and the current speed information according to the mapping relationship between the position information and the speed information and the jitter threshold, the method also includes: when the current jitter offset is greater than or equal to the target jitter offset threshold, sending a prompt message, the prompt message is used to guide the user to reduce the offset.
[0006] In another implementation, after determining the target jitter offset threshold corresponding to the current position information and the current speed information according to the mapping relationship between the position information and the speed information and the jitter threshold, the method further includes: when the current jitter offset is greater than or equal to the target jitter offset threshold, determining the offset difference between the current jitter offset and the target jitter offset threshold; based on the offset difference, generating guidance information including adjusting the adjustment angle and / or adjustment direction of the mobile device and / or adjusting the user gesture, so as to display the guidance information.
[0007] In another implementation, when the current jitter offset is less than the target jitter offset threshold, the mobile device is controlled to shoot and capture images, and after the target image is obtained, the method further includes: recording the number of stored target images, and stopping storage when the number of images reaches a preset number.
[0008] In another implementation, after recording the number of stored target images and stopping when the number of images reaches a preset number, the method further includes: acquiring multiple stored target images, and screening out target images having pixels higher than preset pixels from the multiple target images as event images for use as credentials for preset events.
[0009] In another implementation, after recording the number of stored target images and stopping when the number of images reaches a preset number, the method further includes: using the target image acquired when the offset difference between the target jitter offset threshold and the current jitter offset is minimized as an event image for use as a credential for a preset event.
[0010] In another implementation, before determining the target jitter offset threshold corresponding to the current position information and the current speed information according to the mapping relationship between the position information and the speed information and the jitter offset threshold, the method also includes: training a preset model that characterizes the mapping relationship between the position information and the speed information and the jitter offset threshold based on historical sample data; the historical sample data includes historical position information, historical speed information, and historical jitter offset of historical images of preset pixels.
[0011] In another implementation, a preset model that characterizes the mapping relationship between position information and speed information and the jitter offset threshold is obtained through training based on historical sample data, specifically including: constructing an initial model that characterizes the initial mapping relationship between position information and speed information and the jitter offset threshold; inputting historical position information and historical speed information into the initial model, and optimizing and adjusting the model parameters of the initial model with the goal of ensuring that the output offset threshold output by the initial preset model and the corresponding historical jitter offset are within a preset offset range, so as to obtain a preset model that meets the goals.
[0012] According to a second aspect of an embodiment of the present invention, an image capturing device is provided, which includes a first determination unit for determining current position information, current speed information and current jitter offset of a mobile device; a second determination unit for determining a target jitter offset threshold corresponding to the current position information and the current speed information according to a mapping relationship between the position information and speed information and the jitter offset threshold; and an image acquisition unit for controlling the mobile device to perform image capturing and image acquisition to obtain a target image when the current jitter offset is less than the target jitter offset threshold.
[0013] According to a third aspect of an embodiment of the present invention, an image damage assessment method is provided, which executes an image shooting method such as the first aspect and any possible implementation method thereof to acquire a target image; based on the target image, a damage assessment result of a preset event is determined.
[0014] According to a fourth aspect of an embodiment of the present invention, there is provided an image capturing device having a capturing function, the device being configured to execute the image capturing method of the first aspect and any possible implementation thereof.
[0015] According to a fifth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which instructions are stored. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform an image capture method such as the first aspect and any possible implementation thereof.
[0016] According to a sixth aspect of an embodiment of the present disclosure, a computer program product is provided. The computer program product includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the image capturing method of the first aspect and any possible implementation thereof.
[0017] The technical solution provided by the embodiments of the present invention brings at least the following beneficial effects: in the process of shooting images with a mobile device, the current jitter offset that characterizes the current actual jitter degree of the mobile device under the current position information and current speed information of the mobile device is determined; and the target jitter offset threshold value of the maximum allowable jitter degree under the current position information and current speed information is further determined. In this way, image acquisition is performed when it is detected that the current jitter offset is less than the target jitter offset threshold value to ensure that the target image is captured when the mobile device has a low degree of jitter, thereby ensuring the image quality of the target image. Through the above-mentioned shooting method, the influence of the jitter of the mobile device on the image quality of the captured image is reduced, the image quality is improved, and thus when the image acquired according to the shooting method is used for damage assessment, the efficiency of image damage assessment is improved.
[0018] Furthermore, the above-mentioned shooting method is directly set in the shooting process, and the target image can be quickly and accurately shot without the need for a third tool, thereby saving the storage space of the mobile device and improving the operating performance of the mobile device.
[0019] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0021] Figure 1 is a schematic diagram of an image damage assessment system according to an exemplary embodiment;
[0022] Figure 2 is a schematic diagram showing information dimensions of a mobile device according to an exemplary embodiment;
[0023] Figure 3 is a flow chart of an image capturing method according to an exemplary embodiment;
[0024] Figure 4 is a block diagram of an image capturing device according to an exemplary embodiment;
[0025] Figure 5 The diagram is a schematic diagram of a mobile device according to an exemplary embodiment. DETAILED DESCRIPTION
[0026] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0028] Before introducing the image capturing method provided in the embodiment of the present application in detail, the application scenarios and implementation environment involved in the embodiment of the present application are briefly introduced.
[0029] First, a brief introduction to the application scenarios involved in this application is given.
[0030] In order to improve the efficiency of damage assessment, intelligent damage assessment based on images is very effective and convenient in many cases, especially in the fields of insurance claims, law enforcement, engineering monitoring and product quality control. The quality of the captured images is critical to the accuracy of the damage assessment results. In order to improve the image quality, the blurred video frames or video frames with light spots in the captured video are detected based on the quality detection method, so as to extract the video frames other than the blurred or light spots from the video and capture them to obtain the event image used as the damage assessment certificate. However, the image quality of the image obtained by the above image processing method is still low, which reduces the efficiency of damage assessment.
[0031] According to research, traditional part recognition is mainly in the field of OCR document recognition, which is mainly based on the acquisition system camera and the capture of document images based on shooting. In the real scene of users, for example, QR code scanning, it is more about extracting video frames for recognition. Therefore, for car parts, in addition to shooting based on albums, a video frame extraction method is added, and a new document frame acquisition method is added. And taking pictures and scanning can be switched between each other.
[0032] Compared with album shooting, the image quality of video framing is slightly worse. When capturing video frames, quality detection (video frame blur, light spots, etc.) is required first. The relevant technology is to use the third-party dlib open source library. The principle is to perform blur detection on each frame of the image. The blur detection principle is similar to calculating all the pixels of the image. Based on a fixed algorithm formula, a blur threshold is obtained. By selecting and comparing the threshold, a clear image is selected. However, in real scenes, the error of the blur image is large, and because dlib itself will also occupy the size of the SDK, this brings troubles to the business party who has SDK size restrictions, and the customer experience is also reduced.
[0033] However, most of the extraction scenes are concentrated on the shaking of the customer's hands or moving too fast when holding the phone. First, for scenes that move too fast, because when the system camera is in progress, low-version mobile phones will have an initialization process. If the speed is too fast, the captured video frames will cause residual images. Second, for scenes with shaking, the same effect will also bring residual images. Usually, taking the output of 30 frames per second for a mid-range model as an example, the blurring of dlib's video frames takes about 0.05 seconds. Therefore, the above method has the following disadvantages: the increment of the SDK becomes larger (plus the size of the static library dlib itself); in practice, it is found that the efficiency of blur detection is not high, and large errors have occurred in different models and different backgrounds; the time consumption of video frames is increased: mainly reflected in the practical loss of blur detection calculations; the maintenance cost is increased: compatibility with mobile phones of different architectures, reduction of recognition errors, dlib static library compilation, etc.
[0034] In response to the above problems, the present application proposes an image shooting method. In the process of shooting images with a mobile device, the current jitter offset that characterizes the current actual jitter degree of the mobile device under the current position information and current speed information of the mobile device is determined; and the target jitter offset threshold value of the maximum allowable jitter degree under the current position information and current speed information is further determined. In this way, image acquisition is performed when it is detected that the current jitter offset is less than the target jitter offset threshold value to ensure that the target image is captured when the jitter degree of the mobile device is relatively small, thereby ensuring the image quality of the target image. Through the above shooting method, the impact of the jitter of the mobile device on the image quality of the captured image is reduced, and the image quality is improved, thereby improving the efficiency of image damage assessment when the image acquired according to the shooting method is assessed for damage.
[0035] Secondly, the implementation architecture involved in this application is briefly introduced below.
[0036] Figure 1 Schematic diagram of an image damage assessment system 10 provided by the present disclosure. Figure 1 As shown, the image capturing system 10 includes a server 101 and a mobile device 102. The server 101 and the mobile device 102 may be connected via a wired network or a wireless network.
[0037] In some embodiments, the mobile device 102 is also referred to as a terminal device. The mobile device 102 includes a gyroscope. The gyroscope is used to determine the position information, speed information and current jitter offset of the mobile device 102.
[0038] For example, the mobile device 102 is used as Figure 2 Taking the mobile phone device shown as an example, turn on the system accelerator switch of the mobile device 102, start real-time detection of the motion parameters of the mobile phone device, and obtain valid data through callback, that is, obtain the three-dimensional axis data returned by the system gyroscope. The above three-dimensional axis data is the real three-dimensional coordinate value of the mobile phone device in different coordinate axes: x, y, and z three-axis dimensions.
[0039] Optionally, in order to avoid the risk of occasional errors caused by a single detection, three-dimensional axis data is collected according to a preset period and the number of periods is counted. For example, how many consecutive monitoring times are required to be considered valid, and the average value of multiple collections of three-dimensional axis data is used to determine the current position information, current speed information and current jitter offset of the mobile device 102.
[0040] The server 101 is used to obtain historical sample data of the mobile device 102 , and train a preset model based on the historical sample data, and send the trained preset model to each mobile device 102 .
[0041] When executing a shooting operation, the mobile device 102 calls a preset model and inputs the current position information and current speed information of the mobile device 102 into the preset model to obtain a target jitter offset threshold, so as to shoot and collect images based on the offset difference between the previous jitter offset and the target jitter offset threshold to obtain a target image.
[0042] The target image is sent to the server 101, and the server 101 determines the damage of the preset event based on the target image to obtain a damage determination result, and sends the damage determination result to the mobile device 102. The preset event may be a vehicle damage determination event.
[0043] In some embodiments, the server 101 includes a database or is connected to a database, including being stored in the database. The user's mobile device 102 can access the knowledge of the preset knowledge base in the database through the server 101.
[0044] In some other embodiments, the server 101 may be a single server, or may be a server cluster composed of multiple servers. In some implementations, the server cluster may also be a distributed cluster. The present application does not limit the specific implementation of the server 101.
[0045] The mobile device may be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), augmented reality (AR) and virtual reality (VR) device, etc., which can install and use content community applications (such as Kuaishou), and the present disclosure does not impose any special restrictions on the specific form of the mobile device. It can interact with the user through one or more methods such as keyboard, touchpad, touch screen, remote control, voice interaction or handwriting device.
[0046] Optionally, the above Figure 1 In the virtual reality-based online medical consultation system shown, the server 101 can be connected to at least one mobile device. The present application does not limit the number and type of mobile devices.
[0047] Furthermore, this application does not limit the number and type of mobile devices.
[0048] The image capturing method provided in the embodiment of the present application can be applied to the aforementioned Figure 1The image damage assessment system or mobile device in the implementation architecture shown. For ease of understanding, the image capture method provided by the present application is specifically introduced below in conjunction with the accompanying drawings.
[0049] Figure 3 is a flow chart of an image capturing method according to an exemplary embodiment. Figure 3 As shown, the image capturing method includes the following steps.
[0050] S31, determining the current position information, current speed information and current jitter offset of the mobile device.
[0051] The current jitter offset represents the current jitter degree of the mobile device.
[0052] The current velocity information includes the current angular velocity, the current rotation angle, and the current angular acceleration.
[0053] In some embodiments, the position offset per unit time is used as the current jitter offset.
[0054] S32: Determine a target jitter offset threshold corresponding to the current position information and the current speed information according to a mapping relationship between the position information and the speed information and the jitter offset threshold.
[0055] It is understandable that the jitter offset threshold corresponding to the current position information and the current speed information is determined as the target jitter offset threshold.
[0056] Different position information and speed information correspond to different jitter offset thresholds. The jitter offset threshold indicates that under the condition of the position information and the speed information, the image captured by the mobile device under the jitter offset threshold can meet the minimum preset pixel requirement. In this way, the jitter offset threshold is related to the position information, the speed information and the required minimum preset pixel.
[0057] S33, when the current jitter offset is less than the target jitter offset threshold, controlling the mobile device to shoot and collect images to obtain a target image.
[0058] If the current jitter offset is less than the target jitter offset threshold, it means that the jitter degree of the mobile device is small and the impact on the image quality is small.
[0059] In the above implementation, in the process of shooting images with a mobile device, the current jitter offset that characterizes the current actual jitter degree of the mobile device under the current position information and current speed information of the mobile device is determined; and the target jitter offset threshold of the maximum allowable jitter degree under the current position information and current speed information is further determined. In this way, image acquisition is performed when it is detected that the current jitter offset is less than the target jitter offset threshold to ensure that the target image is captured when the mobile device has a low degree of jitter, thereby ensuring the image quality of the target image. Through the above shooting method, the impact of the jitter of the mobile device on the image quality of the captured image is reduced, and the image quality is improved, thereby improving the efficiency of image damage assessment when assessing damage based on the image acquired by the shooting method.
[0060] Furthermore, the above-mentioned shooting method is directly set in the shooting process, and the target image can be quickly and accurately shot without the need for a third tool, thereby saving the storage space of the mobile device and improving the operating performance of the mobile device.
[0061] As an implementation mode, after executing step S32 to determine the target jitter offset threshold corresponding to the current position information and the current speed information, the following steps are also performed: when the current jitter offset is greater than or equal to the target jitter offset threshold, a prompt message is sent, and the prompt message is used to guide the user to reduce the offset.
[0062] In this embodiment, if the current jitter offset is greater than or equal to the target jitter offset threshold, it means that the mobile device has a high degree of jitter and the captured image is not good, so a prompt message is sent to prompt the user to reduce the jitter operation, so that the user can adjust the jitter at a reasonable time.
[0063] Optionally, after executing step S32 to determine the target jitter offset threshold corresponding to the current position information and the current speed information, the following steps are also performed: when the current jitter offset is greater than or equal to the target jitter offset threshold, determining the offset difference between the current jitter offset and the target jitter offset threshold; based on the offset difference, generating guidance information including adjusting the adjustment angle and / or adjustment direction of the mobile device and / or adjusting the user gesture, so as to display the guidance information.
[0064] In this embodiment, based on the current jitter offset and the target jitter offset threshold, it is identified that the jitter level of the mobile device is severe, and guidance information is generated based on the offset difference, so that the user can adjust the direction, angle or gesture of the handheld mobile device based on the guidance information, providing a favorable basis for the user to reduce the jitter, thereby improving the adjustment efficiency of the jitter adjustment and thus improving the image capture efficiency.
[0065] Optionally, after executing step S33 to obtain the target image, the following steps are further performed: recording the number of stored target images, and stopping storage when the number of images reaches a preset number.
[0066] Specifically, when it is continuously detected that the current offset is less than the target offset threshold, the mobile device is continuously controlled to photograph the target object and the photographed target images are stored until the number of stored target images reaches a preset number, and the storage is stopped.
[0067] In some embodiments, the current offset is smaller than the target offset threshold and the current offset is smaller than the target offset threshold. The offset difference with a larger absolute value is stored first.
[0068] In this implementation, in order to avoid storing too many target images and occupying too much space on the mobile device, thereby reducing the performance of the mobile device, the number of target images is controlled within a preset number to ensure the performance of the mobile device.
[0069] As an implementation mode, after recording the number of stored target images and stopping when the number of images reaches a preset number, the following steps may be performed: acquiring multiple stored target images, and screening out target images having pixels higher than preset pixels from the multiple target images as event images for use as credentials for preset events.
[0070] Exemplarily, the target image with the highest pixel among the target images is used as the event image.
[0071] The preset event vouchers include vehicle damage assessment vouchers and dispute event vouchers; dispute events include consumer disputes (such as product quality issues, which require product image vouchers), contract disputes (such as unreasonable contract content), disputes over the safety of people and objects (such as theft or vandalism, taking photos of the scene, including the location of the stolen items, signs of damage, etc.) and public events (such as damage to public facilities, such as damaged street lights, damaged road surfaces, etc., taking photos as event voucher photos to report to relevant departments).
[0072] In this implementation, in order to further improve the accuracy of image damage assessment, a target image with higher pixels is selected as an event image to perform image damage assessment.
[0073] As another embodiment, after recording the number of stored target images and stopping when the number of images reaches a preset number, the following steps can also be performed: the target image obtained when the offset difference between the target jitter offset threshold and the current jitter offset is minimized is used as an event image for use as a credential for a preset event.
[0074] In this embodiment, the target image captured with the minimum jitter is selected as the event image to ensure that the image quality of the event image used in the image damage assessment process is the best among multiple target images, thereby improving the efficiency of image damage assessment.
[0075] As an implementation mode, before determining the target jitter offset threshold value corresponding to the current position information and the current speed information according to the mapping relationship between the position information and the speed information and the jitter offset threshold value, the method further includes: obtaining a preset model characterizing the mapping relationship between the position information and the speed information and the jitter offset threshold value according to training based on historical sample data; the historical sample data includes historical position information, historical speed information and historical jitter offset of historical images of preset pixels.
[0076] In this implementation, in order to better capture the inherent rules between the position information and speed information and the jitter offset threshold (such as the complex nonlinear relationship between the data), historical sample data is used to train a preset model that characterizes the above mapping relationship.
[0077] Furthermore, as a model training method, a preset model that characterizes the mapping relationship between position information and speed information and the jitter offset threshold is obtained based on historical sample data training, specifically including: constructing an initial model that characterizes the initial mapping relationship between position information and speed information and the jitter offset threshold; inputting historical position information and historical speed information into the initial model, and optimizing and adjusting the model parameters of the initial model with the output offset threshold of the initial preset model output and the corresponding historical jitter offset within a preset offset range as the goal, so as to obtain a preset model that meets the goals.
[0078] In this implementation, the model parameters of the initial model are optimized with the output offset threshold and the corresponding historical jitter offset within a preset offset range as the optimization target, ensuring that the preset model can more accurately map the position information and speed information to the jitter offset threshold.
[0079] In order to achieve the above functions, the image capture device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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.
[0080] The present disclosure also provides a Figure 4The image capturing device shown includes: a first determining unit 401 , a second determining unit 402 and an image acquiring unit 403 .
[0081] The first determining unit 401 is used to determine the current position information, current speed information and current jitter offset of the mobile device.
[0082] The second determining unit 402 is configured to determine a target jitter offset threshold corresponding to the current position information and the current speed information according to a mapping relationship between the position information and the speed information and the jitter offset threshold.
[0083] The image acquisition unit 403 is used to control the mobile device to perform image shooting and image acquisition to obtain a target image when the current jitter offset is less than the target jitter offset threshold.
[0084] In one embodiment, after determining the target jitter offset threshold corresponding to the current position information and the current speed information according to the mapping relationship between the position information and the speed information and the jitter threshold, the image acquisition unit 403 is also used to send a prompt message when the current jitter offset is greater than or equal to the target jitter offset threshold, and the prompt message is used to guide the user to reduce the offset.
[0085] In another embodiment, after determining the target jitter offset threshold corresponding to the current position information and the current speed information according to the mapping relationship between the position information and the speed information and the jitter threshold, the image acquisition unit 403 is also used to determine the offset difference between the current jitter offset and the target jitter offset threshold when the current jitter offset is greater than or equal to the target jitter offset threshold; based on the offset difference, generate guidance information including adjusting the adjustment angle and / or adjustment direction of the mobile device and / or adjusting the user gesture to display the guidance information.
[0086] In another embodiment, when the current jitter offset is less than the target jitter offset threshold, the mobile device is controlled to perform image capture and image acquisition. After the target image is obtained, the image acquisition unit 403 is also used to record the number of stored target images, and stop storing when the number of images reaches a preset number.
[0087] In another embodiment, after recording the number of stored target images and stopping when the number of images reaches a preset number, the image acquisition unit 403 is further used to: obtain multiple stored target images, and filter out target images with pixels higher than preset pixels from the multiple target images as event images for use as credentials for preset events.
[0088] In another embodiment, after recording the number of stored target images and stopping when the number of images reaches a preset number, the image acquisition unit 403 is further used to: use the target image acquired when the offset difference between the target jitter offset threshold and the current jitter offset is minimized as an event image for use as a credential for a preset event.
[0089] In another embodiment, the second determination unit 402 is further used to: obtain a preset model that characterizes the mapping relationship between position information and speed information and the jitter offset threshold based on training of historical sample data; the historical sample data includes historical position information, historical speed information and historical jitter offset of historical images of preset pixels.
[0090] In another embodiment, the second determination unit 402 is specifically used to: construct an initial model that characterizes the initial mapping relationship between position information and speed information and the jitter offset threshold; input historical position information and historical speed information into the initial model, and optimize and adjust the model parameters of the initial model with the output offset threshold of the initial preset model output and the corresponding historical jitter offset within a preset offset range as the goal, so as to obtain a preset model that meets the goals.
[0091] Regarding the device in the above embodiment, the specific manner in which each unit module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0092] Figure 5 is a schematic diagram of a mobile device provided by this application. Figure 5 The mobile device 50 may include at least one processor 501 and a memory 503 for storing processor executable instructions. The processor 501 is configured to execute instructions in the memory 503 to implement the image capturing method in the following embodiments.
[0093] In addition, the mobile device 50 may further include a communication bus 502 , at least one communication interface 504 , an input device 506 , and an output device 505 .
[0094] The processor 501 may be a central processing unit (CPU), a microprocessing unit, an ASIC, or one or more integrated circuits for controlling the execution of the program of the present application.
[0095] Communication bus 502 may include a pathway for transmitting information between the above-mentioned components.
[0096] The communication interface 504 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0097] The input device 506 is used to receive input signals and the output device 505 is used to output signals.
[0098] The memory 503 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory may be independent and connected to the processing unit via a bus. The memory may also be integrated with the processing unit.
[0099] The memory 503 is used to store instructions for executing the solution of the present application, and the execution is controlled by the processor 501. The processor 501 is used to execute the instructions stored in the memory 503, so as to realize the functions in the method of the present application.
[0100] In a specific implementation, as an embodiment, the processor 501 may include one or more CPUs, such as Figure 5 CPU0 and CPU1 in.
[0101] In a specific implementation, as an embodiment, the mobile device 50 may include multiple processors, such as Figure 5 501 and processor 507 in the embodiment of the present invention. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0102] The mobile device Figure 5The device shown includes: a processor 501 and a memory 503 for storing executable instructions of the processor 501; wherein the processor 501 is configured to execute the executable instructions to implement an image capturing method as in any possible implementation method described above. And the same technical effect can be achieved, and to avoid repetition, it will not be described here.
[0103] The embodiment of the present application also provides a computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by the processor of the image capture device or mobile device, the image capture device or mobile device can execute the image capture method of any possible implementation method as described above. And the same technical effect can be achieved, so it will not be repeated here to avoid repetition.
[0104] The embodiment of the present application also provides a computer program product, including a computer program or instruction, which is executed by a processor as an image capturing method in any of the above possible implementations. The same technical effect can be achieved, and will not be described here to avoid repetition.
[0105] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0106] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. An image capturing method, characterized in that: The method comprises: Determine the current position information, current speed information and current jitter offset of the mobile device; Determine a target jitter offset threshold value corresponding to the current position information and the current speed information according to a mapping relationship between the position information and the speed information and the jitter offset threshold value; When the current jitter offset is less than the target jitter offset threshold, the mobile device is controlled to perform image shooting and image acquisition to obtain a target image.
2. The image capturing method according to claim 1, characterized in that: After determining the target jitter offset threshold corresponding to the current position information and the current speed information according to the mapping relationship between the position information and the speed information and the jitter threshold, the method further includes: When the current jitter offset is greater than or equal to the target jitter offset threshold, a prompt message is sent, where the prompt message is used to guide the user to reduce the offset.
3. The image capturing method according to claim 1, characterized in that: After determining the target jitter offset threshold corresponding to the current position information and the current speed information according to the mapping relationship between the position information and the speed information and the jitter threshold, the method further includes: When the current jitter offset is greater than or equal to the target jitter offset threshold, determining an offset difference between the current jitter offset and the target jitter offset threshold; According to the offset difference, guidance information including adjusting an adjustment angle and / or an adjustment direction of the mobile device and / or adjusting a user gesture is generated to display the guidance information.
4. The image capturing method according to claim 1, wherein: When the current jitter offset is less than the target jitter offset threshold, controlling the mobile device to shoot and capture an image, and obtaining the target image, the method further includes: The number of stored images of the target image is recorded, and the storage is stopped when the number of images reaches a preset number.
5. The image capturing method according to claim 4, characterized in that: After the number of images of the target image stored in the record stops when the number of images reaches a preset number, the method further includes: A plurality of stored target images are acquired, and a target image having a pixel higher than a preset pixel is screened out from the plurality of target images as an event image used as a credential for a preset event.
6. The image capturing method according to claim 1, wherein: After the number of images of the target image stored in the record stops when the number of images reaches a preset number, the method further includes: The target image acquired when the offset difference between the target jitter offset threshold and the current jitter offset is minimized is used as an event image for serving as a preset event credential.
7. The image capturing method according to any one of claims 1 to 6, characterized in that: Before determining the target jitter offset threshold corresponding to the current position information and the current speed information according to the mapping relationship between the position information and the speed information and the jitter offset threshold, the method further includes: A preset model representing the mapping relationship between position information and speed information and a jitter offset threshold is obtained by training based on historical sample data; the historical sample data includes historical position information, historical speed information and historical jitter offset of historical images of preset pixels.
8. The image capturing method according to claim 7, characterized in that: The preset model representing the mapping relationship between the position information and the speed information and the jitter offset threshold obtained by training according to the historical sample data specifically includes: Constructing an initial model representing an initial mapping relationship between position information and speed information and a jitter offset threshold; The historical position information and the historical speed information are input into the initial model, and the model parameters of the initial model are optimized and adjusted with the output offset threshold of the initial preset model output and the corresponding historical jitter offset being within the preset offset range to obtain the preset model that meets the target.
9. An image capturing device, characterized in that: The device comprises: A first determining unit, configured to determine current position information, current speed information, and current jitter offset of the mobile device; A second determining unit, configured to determine a target jitter offset threshold corresponding to the current position information and the current speed information according to a mapping relationship between the position information and the speed information and the jitter offset threshold; The image acquisition unit is used to control the mobile device to shoot and acquire images to obtain a target image when the current jitter offset is less than the target jitter offset threshold.
10. A method for image damage assessment, characterized in that: The method comprises: Acquire a target image using the image capturing method according to any one of claims 1 to 8; Based on the target image, a damage assessment result of a preset event is determined.
11. A mobile device, characterized in that: The mobile device has a shooting function and is configured to execute the image shooting method according to any one of claims 1 to 8.
12. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a mobile device, the mobile device is enabled to execute the image capturing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Camera anti-shake method and device, electronic equipment and computer readable storage medium
CN110166695A
Positioning method and device, electronic equipment and storage medium
CN112950714A
Image acquisition system for vehicle loss assessment
CN116246052A
Image forming apparatus
US20140050494A1
Camera pose estimating method and system
US20190026916A1