Methods and devices for determining abnormalities in motor equipment, storage media, and electronic devices.
By detecting the rotation time and distance of the camera equipment and comparing image features, the problem of monitoring the performance of the camera motor was solved, enabling accurate detection of motor performance and extension of its lifespan.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-06
- Publication Date
- 2026-03-13
AI Technical Summary
Existing technologies lack performance testing and lifespan extension functions for camera motors, making it difficult to monitor and maintain the performance of flip camera motors.
By acquiring the time and distance of the camera device from the first position to the second position, the ratio is calculated to detect whether the motor device is abnormal. Combined with image feature vector comparison, the abnormality level of the motor device is determined and a corresponding prompt is issued.
It enables accurate detection of the performance of camera equipment motors, timely detection of performance degradation and proposal of solutions, thereby extending the service life of the motor equipment.
Smart Images

Figure CN114430484B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and more specifically, to a method and apparatus for determining anomalies in motor equipment, a storage medium, and an electronic device. Background Technology
[0002] As an important module for information collection, cameras are also carriers of private information such as facial data. With users paying more attention to privacy protection, more and more cameras have been made with a flip function. However, current flip cameras do not have functions for performance testing or lifespan extension of the camera motor. Summary of the Invention
[0003] This invention provides a method and apparatus for determining abnormalities in motor equipment, a storage medium, and an electronic device, to at least solve the problem of detecting motor performance in camera equipment in related technologies.
[0004] According to an embodiment of the present invention, a method for determining anomalies in motor equipment is provided, comprising:
[0005] The first time taken for the camera device to rotate from the first position to the second position, and the first distance between the first position and the second position are obtained;
[0006] The first time and the first distance are used to detect whether there is any abnormality in the motor device in the camera device, wherein the motor device is used to drive the rotation of the camera device.
[0007] According to another embodiment of the present invention, an abnormality determination device for a motor device is provided, comprising: a first acquisition module, configured to acquire a first time taken for a camera device to rotate from a first position to a second position, and a first distance between the first position and the second position; and a first detection module, configured to detect whether an abnormality has occurred in the motor device of the camera device using the first time and the first distance, wherein the motor device is used to drive the rotation of the camera device.
[0008] In an exemplary embodiment, the first acquisition module includes: a first recording unit, configured to record the first position where the camera device starts to rotate and the start time of the camera device starting to rotate; a second recording unit, configured to record the second position where the camera device stops rotating and the end time of the camera device stopping to rotate; a first determining unit, configured to determine the distance between the first position and the second position as the first distance; and a second determining unit, configured to determine the difference between the start time and the end time as the first time.
[0009] In an exemplary embodiment, the first detection module includes: a first calculation unit, configured to calculate a first ratio between the first distance and the first time; and a second determination unit, configured to determine that the motor equipment has an abnormality of a first abnormality level when the first ratio is within a first preset threshold.
[0010] In one exemplary embodiment, the apparatus further includes: a second acquisition module, configured to, after determining that the motor device has an anomaly of a first abnormality level when the first ratio is greater than a first preset threshold, acquire a second distance between the camera device rotating from the second position to the third position, and a second time taken for the camera device to rotate from the second position to the third position, wherein the second time is less than the first time; a first calculation module, configured to calculate the difference between the first distance and the second distance to determine a third distance, wherein the third distance is less than the first distance; a second calculation module, configured to calculate a second ratio between the third distance and the second time; and a first determination module, configured to determine that the motor device has an anomaly of a second abnormality level when the second ratio is within a second preset threshold, wherein the second abnormality level is greater than the first abnormality level, and the second preset threshold is less than the first preset threshold.
[0011] In one exemplary embodiment, the apparatus further includes: a third acquisition module, configured to, after determining that the motor device has a second level of abnormality when the second ratio is within a second preset threshold, acquire a first image captured by the camera device at a fourth position when the camera device rotates; a fourth acquisition module, configured to acquire a second image captured by the camera device at a fifth position when the camera device stops rotating; and a second determination module, configured to determine that the motor device has a third level of abnormality using the first image and the second image, wherein the third level of abnormality is greater than the second level of abnormality.
[0012] In an exemplary embodiment, the second determining module includes: a first extraction unit, configured to extract a first feature vector of the first image and a second feature vector of the second image; a first comparison unit, configured to compare the first feature vector and the second feature vector; and a third determining unit, configured to determine that the motor equipment has an anomaly of a third abnormality level when the similarity between the first feature vector and the second feature vector is greater than a third preset threshold.
[0013] In one exemplary embodiment, the apparatus further includes: a third determining module, configured to determine the abnormality level of the motor equipment; and a first prompting module, configured to issue a prompting message according to the abnormality level, wherein the prompting message is used to suggest an abnormality handling plan corresponding to the abnormality level.
[0014] According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0015] According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0016] This invention obtains the first time taken for a camera device to rotate from a first position to a second position, and the first distance between the first and second positions; and uses the first time and first distance to detect whether there is any abnormality in the motor device in the camera device, wherein the motor device is used to drive the rotation of the camera device. This achieves performance detection of the motor device. Therefore, it solves the problem of detecting the performance of the motor in a camera device in related technologies, achieving the effect of accurately detecting the performance of the motor in a camera device. Attached Figure Description
[0017] Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of determining anomalies in motor equipment according to an embodiment of the present invention.
[0018] Figure 2 This is a flowchart of a method for determining anomalies in motor equipment according to an embodiment of the present invention;
[0019] Figure 3 This is a schematic diagram (a) showing the position of a camera device according to an embodiment of the present invention;
[0020] Figure 4 This is a schematic diagram (II) showing the position of the camera device according to an embodiment of the present invention;
[0021] Figure 5 This is a schematic diagram (iii) showing the position of the camera device according to an embodiment of the present invention;
[0022] Figure 6 This is a system structure diagram according to an embodiment of the present invention;
[0023] Figure 7 This is an overall flowchart according to an embodiment of the present invention;
[0024] Figure 8 This is a schematic diagram (four) showing the position of the camera device according to an embodiment of the present invention;
[0025] Figure 9 This is a structural block diagram of an abnormality determination device for motor equipment according to an embodiment of the present invention. Detailed Implementation
[0026] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0028] The methods and embodiments provided in this application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of determining anomalies in motor equipment according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0029] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the abnormal determination method for motor equipment in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0030] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0031] This embodiment provides a method for determining abnormalities in motor equipment. Figure 2 This is a flowchart of a method for determining anomalies in motor equipment according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:
[0032] Step S202: Obtain the first time taken for the camera device to rotate from the first position to the second position, and the first distance between the first position and the second position;
[0033] Step S204: Detect whether there is any abnormality in the motor device in the camera device using the first time and the first distance, wherein the motor device is used to drive the rotation of the camera device.
[0034] The entity performing the above steps can be a terminal, but is not limited to this.
[0035] In this embodiment, the motor is used to control the rotation of the camera in the camera device.
[0036] like Figure 3 As shown, the camera in the camera device can be positioned on top of the device, and the camera can be positioned from the front of the device (e.g., Figure 4 (As shown) Flip to the back of the device (as shown) Figure 5 (As shown). The camera rotates between the front and back of the device.
[0037] Through the above steps, by acquiring the first time taken for the camera device to rotate from the first position to the second position, and the first distance between the first and second positions, and using the first time and the first distance to detect whether there is any abnormality in the motor device in the camera device, wherein the motor device is used to drive the rotation of the camera device, the performance of the motor device is detected. Therefore, the problem of detecting the performance of the motor in the camera device in related technologies can be solved, achieving the effect of accurately detecting the performance of the motor in the camera device.
[0038] In one exemplary embodiment, obtaining the first time taken for the camera device to rotate from the first position to the second position, and the first distance between the first position and the second position, includes:
[0039] S21, record the first position where the camera device starts to rotate, and the start time of the camera device starting to rotate;
[0040] S22, record the second position where the camera device stops rotating, and the end time of the camera device stopping rotating;
[0041] S23, the distance between the first position and the second position is defined as the first distance;
[0042] S24, the difference between the start time and the end time is determined as the first time.
[0043] In this embodiment, for example, the distance the camera travels from the back of the device to the front is a first distance, and the time taken is a first time, so the speed of the flip can be calculated.
[0044] In one exemplary embodiment, detecting an anomaly in the motor device of the camera device using a first time and a first distance includes:
[0045] S31, Calculate the first ratio between the first distance and the first time;
[0046] S32, if the first ratio is within the first preset threshold, determine that the motor equipment has an anomaly of the first abnormal level.
[0047] In this embodiment, the first ratio between the first distance and the first time is the speed of camera rotation. Anomalies of the first anomaly level include, for example, a decrease in the performance of the current motor device, or slight wear and tear on the motor device.
[0048] In an exemplary embodiment, after determining that the motor equipment has an anomaly of a first abnormality level when the first ratio is greater than a first preset threshold, the method further includes:
[0049] S41, acquire the second distance between the camera device rotating from the second position to the third position, and the second time taken for the camera device to rotate from the second position to the third position, wherein the second time is less than the first time;
[0050] S42, calculate the difference between the first distance and the second distance, and determine the third distance, wherein the third distance is less than the first distance;
[0051] S43, calculate the second ratio between the third distance and the second time;
[0052] S44, if the second ratio is within the second preset threshold, determine that the motor equipment has a second abnormality level, wherein the second abnormality level is greater than the first abnormality level and the second preset threshold is less than the first preset threshold.
[0053] In this embodiment, when the motor equipment exhibits an anomaly of the first anomaly level, the anomaly range is adjusted, that is, the first preset threshold is adjusted to the second preset threshold, i.e., the speed anomaly range is lowered, for subsequent determination of whether the performance of the motor equipment has seriously degraded. Anomalies of the second anomaly level include serious performance degradation of the motor equipment.
[0054] In one exemplary case, after determining that the motor equipment has an anomaly of the second anomaly level when the second ratio is within a second preset threshold, the method further includes:
[0055] S51, when the camera device rotates, acquire the first image captured by the camera device at the fourth position;
[0056] S52, when the camera device stops rotating, acquire the second image captured by the camera device at the fifth position;
[0057] S53, using the first image and the second image, determine that the motor equipment has a third level of abnormality, wherein the third level of abnormality is greater than the second level of abnormality.
[0058] In this embodiment, when the motor equipment is in a second-level abnormality situation, the camera position is reset, that is, the camera is adjusted to the initial position (fourth position). A first image is captured at the initial position, and a second image is acquired after flipping the camera. A third-level abnormality includes a severely degraded performance of the motor equipment, requiring replacement.
[0059] In one exemplary embodiment, determining that the motor equipment exhibits an anomaly of the third anomaly level using the first image and the second image includes:
[0060] S61, extract the first feature vector of the first image and the second feature vector of the second image;
[0061] S62, compare the first feature vector and the second feature vector;
[0062] S63, if the similarity between the first feature vector and the second feature vector is greater than a third preset threshold, determine that the motor equipment has an anomaly of the third anomaly level.
[0063] In this embodiment, the purpose of comparing the first feature vector and the second feature vector is to determine the similarity between the first image and the second image. If the similarity reaches a third preset threshold, it can be determined that the motor performance has been severely degraded. The interface informs the user that the camera motor's performance has degraded and requests that the camera motor be replaced promptly. The interface also prompts the user to keep the camera facing forward and not to rotate it further to ensure normal camera functionality.
[0064] In one exemplary embodiment, the method further includes:
[0065] S71, Determine the level of abnormality when motor equipment malfunctions;
[0066] S72, issue a prompt message according to the anomaly level, wherein the prompt message is used to suggest the anomaly handling plan corresponding to the anomaly level.
[0067] In this embodiment, the prompts include information such as stopping the camera's rotation and replacing the camera.
[0068] The present invention will now be described in conjunction with specific embodiments:
[0069] This embodiment is used to test the performance of the camera's rotating motor to avoid affecting the normal use of the camera. For example... Figure 6 As shown, the detection system in this embodiment includes:
[0070] The speed detection module is used to detect the camera's flipping speed.
[0071] The performance analysis module is used to analyze camera performance using built-in performance strategies.
[0072] The flip strategy module is used to adjust the flip strategy based on the performance analysis results.
[0073] Image processing and comparison module, including photo taking function and image similarity algorithm.
[0074] The UI module is used for user interaction display.
[0075] like Figure 7 As shown, the operation of this embodiment includes the following steps:
[0076] S701, Initialization, set the distance s from the back to the front of the camera, and the abnormal speed range [y2, y1], y1 > y2 > 0 (y1 and y2 are adjusted according to different motor devices).
[0077] S702, initial position x = 0, meaning the camera is located on the back, such as Figure 5 As shown, all subsequent adjustments to the initial position are relative to the camera located on the back.
[0078] S703: Each time the camera is used, the camera flips from position x and records the start time as t1.
[0079] S704, waits for notification that the camera flipping is complete. Upon receiving the notification, it records the flipping end time t2. The flipping is complete, and the camera is now positioned on the front of the device. Figure 4 As shown.
[0080] S705, if It can be determined that the current motor performance has decreased and the motor has suffered some damage. The abnormal speed range [y4, y3] is readjusted, y2>y4>0, y1>y3>0, y3>y4 (that is, the abnormal speed range is lowered, which is used to judge whether the motor performance has seriously deteriorated).
[0081] S706, adjusts the camera's initial position. When the camera is no longer in use, it resets, but not completely; it resets to the initial position s1, as shown. Figure 8 As shown, this reduces the motor's operating distance.
[0082] S707, if It can be determined that the current motor performance has decreased significantly. The next time the camera is used, take a picture before the camera flips over and save the image data A to the local machine.
[0083] After the S708 flips, take another picture and save the image data B to the local machine.
[0084] S709 compares the feature vectors of images A and B to calculate similarity. If the similarity reaches a specified threshold, it indicates a severe degradation in motor performance. The interface informs the user of this degradation and requests timely replacement of the camera motor. The user is also prompted to ensure the camera functions correctly by keeping it facing forward and preventing it from flipping. If the user chooses to keep it facing forward, the camera will remain facing forward without flipping until the motor is replaced.
[0085] In summary, this embodiment uses motor rotation speed detection to initially determine if motor performance has deteriorated. Combined with a rotation reset strategy, it reduces the rotation distance, motor rotation distance, and time, thereby extending motor lifespan. By comparing images taken by the camera before and after rotation, it determines whether motor performance has severely deteriorated and reminds the user to remain facing forward to prevent the camera from becoming completely unusable after a malfunction.
[0086] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to 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, in essence, 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) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0087] This embodiment also provides an anomaly determination device for motor equipment, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0088] Figure 9 This is a structural block diagram of an abnormality determination device for motor equipment according to an embodiment of the present invention, such as... Figure 9 As shown, the device includes:
[0089] The first acquisition module 92 is used to acquire the first time taken for the camera device to rotate from the first position to the second position, and the first distance between the first position and the second position;
[0090] The first detection module 94 is used to detect whether the motor device in the camera device is abnormal by using the first time and the first distance, wherein the motor device is used to drive the rotation of the camera device.
[0091] In one exemplary embodiment, the first acquisition module described above includes:
[0092] The first recording unit is used to record the first position at which the camera device starts to rotate, and the start time of the camera device starting to rotate.
[0093] The second recording unit is used to record the second position at which the camera device stops rotating, and the end time of the camera device stopping rotating.
[0094] The first determining unit is used to determine the distance between the first position and the second position as the first distance;
[0095] The second determining unit is used to determine the difference between the start time and the end time as the first time.
[0096] In one exemplary embodiment, the first detection module described above includes:
[0097] The first calculation unit is used to calculate the first ratio between the first distance and the first time.
[0098] The second determining unit is used to determine that the motor equipment has an abnormality of the first abnormality level when the first ratio is within the first preset threshold.
[0099] In one exemplary embodiment, the above-described apparatus further includes:
[0100] The second acquisition module is used to acquire, after determining that the motor equipment has an abnormality of the first abnormality level when the first ratio is greater than the first preset threshold, the second distance between the camera device rotating from the second position to the third position and the second time taken for the camera device to rotate from the second position to the third position, wherein the second time is less than the first time.
[0101] The first calculation module is used to calculate the difference between the first distance and the second distance to determine the third distance, wherein the third distance is less than the first distance;
[0102] The second calculation module is used to calculate the second ratio between the aforementioned third distance and the aforementioned second time.
[0103] The first determining module is used to determine that the motor equipment has a second abnormality level when the second ratio is within the second preset threshold, wherein the second abnormality level is greater than the first abnormality level and the second preset threshold is less than the first preset threshold.
[0104] In one exemplary embodiment, the above-described apparatus further includes:
[0105] The third acquisition module is used to acquire a first image captured by the camera device at a fourth position when the camera device rotates after determining that the motor device has an abnormality of the second level when the second ratio is within the second preset threshold.
[0106] The fourth acquisition module is used to acquire a second image captured by the camera at the fifth position when the camera stops rotating.
[0107] The second determining module is used to determine, using the first image and the second image, that the motor equipment has an anomaly of a third anomaly level, wherein the third anomaly level is greater than the second anomaly level.
[0108] In one exemplary embodiment, the second determining module described above includes:
[0109] The first extraction unit is used to extract the first feature vector of the first image and the second feature vector of the second image;
[0110] The first comparison unit is used to compare the first feature vector and the second feature vector.
[0111] The third determining unit is used to determine that the motor equipment has a third level of abnormality when the similarity between the first feature vector and the second feature vector is greater than a third preset threshold.
[0112] In one exemplary embodiment, the above-described apparatus further includes:
[0113] The third determining module is used to determine the level of abnormality of the aforementioned motor equipment.
[0114] The first prompting module is used to issue prompting information according to the above-mentioned anomaly level, wherein the above-mentioned prompting information is used to suggest the anomaly handling plan corresponding to the above-mentioned anomaly level.
[0115] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0116] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0117] In this embodiment, the computer-readable storage medium described above may be configured to store a computer program for performing the above steps.
[0118] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0119] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0120] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0121] In one exemplary embodiment, the processor described above may be configured to perform the above steps via a computer program.
[0122] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0123] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0124] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method of determining an abnormality of an electric motor apparatus, characterized by, The method comprises: obtaining a first time for a camera device to rotate from a first position to a second position, and a first distance between the first position and the second position; detecting whether a motor device in the camera device is abnormal by using the first time and the first distance, wherein the motor device is used to drive rotation of the camera device; detecting that the motor device in the camera device is abnormal by using the first time and the first distance, comprising: calculating a first ratio between the first distance and the first time; and in a case where the first ratio is within a first preset threshold, determining that the motor device is abnormal at a first abnormality level. The method comprises: recording the first position at which the camera device starts to rotate, and a start time at which the camera device starts to rotate; recording the second position at which the camera device ends to rotate, and an end time at which the camera device ends to rotate; determining a distance between the first position and the second position as the first distance; determining a difference between the start time and the end time as the first time.
2. The method of claim 1, wherein, After determining that the motor device is abnormal at the first abnormality level in a case where the first ratio is within the first preset threshold, the method further comprises: obtaining a second distance between the camera device rotating from a second position to a third position, and a second time for the camera device to rotate from the second position to the third position, wherein the second time is less than the first time; calculating a difference between the first distance and the second distance to determine a third distance, wherein the third distance is less than the first distance; calculating a second ratio between the third distance and the second time; in a case where the second ratio is within a second preset threshold, determining that the motor device is abnormal at a second abnormality level, wherein the second abnormality level is greater than the first abnormality level, and the second preset threshold is less than the first preset threshold.
3. The method of claim 2, wherein, After determining that the motor device is abnormal at the second abnormality level in a case where the second ratio is within the second preset threshold, the method further comprises: in a case where the camera device rotates, obtaining a first image captured by the camera device at a fourth position; in a case where the camera device stops rotating, obtaining a second image captured by the camera device at a fifth position; determining that the motor device is abnormal at a third abnormality level by using the first image and the second image, wherein the third abnormality level is greater than the second abnormality level.
4. The method of claim 3, wherein, Determining that the motor device is abnormal at the third abnormality level by using the first image and the second image, comprising: extracting a first feature vector of the first image and a second feature vector of the second image; comparing the first feature vector and the second feature vector; in a case where a similarity between the first feature vector and the second feature vector is greater than a third preset threshold, determining that the motor device is abnormal at the third abnormality level.
5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: determining an abnormality level of the motor device; sending prompt information according to the abnormality level, wherein the prompt information is used to prompt an abnormality processing scheme corresponding to the abnormality level.
6. An abnormality determination device of an electric motor apparatus characterized by comprising: Comprise: a first acquisition module, configured to acquire a first time used by a camera device to rotate from a first position to a second position, and a first distance between the first position and the second position; a first detection module, configured to detect whether a motor device in the camera device is abnormal by using the first time and the first distance, wherein the motor device is used to drive rotation of the camera device; the first detection module is further configured to calculate a first ratio between the first distance and the first time; and in a case where the first ratio is within a first preset threshold, determine that the motor device is abnormal at a first abnormality level; the first acquisition module comprises: a first recording unit, configured to record the first position at which the camera device starts to rotate, and a start time at which the camera device starts to rotate; a second recording unit, configured to record the second position at which the camera device ends to rotate, and an end time at which the camera device ends to rotate; a first determination unit, configured to determine a distance between the first position and the second position as the first distance; and a second determination unit, configured to determine a difference between the start time and the end time as the first time.
7. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, wherein the computer program is executed by the processor to implement the method in any one of claims 1 to 5. 8.An electronic device comprising a memory and a processor, the electronic device comprising: The memory stores a computer program, and the processor is configured to run the computer program to execute the method in any one of claims 1 to 5.
Citation Information
Patent Citations
Camera control method and device, mobile terminal and storage medium
CN109120841A
Motion recognition method and device of camera module and electronic equipment
CN110740312A