Multi-scene fixed-point capture method, system, storage medium and electronic device
By generating template images and self-identifying matches with the environment, locating and amplifying target objects, the problem of low image capture efficiency and safety hazards during equipment inspections is solved, efficient and clear image acquisition is achieved, and hardware and labor costs are reduced.
Patent Information
- Application Number
- CN202211475686.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-11-23
AI Technical Summary
In the existing technology, the image capture efficiency during equipment inspection is low, the pictures are blurred, and there are potential safety hazards. In addition, the cost of a single camera for a single equipment is high, the failure rate is high, and installation and maintenance are difficult.
By obtaining the target map, a template image is generated, the robot is controlled to perform fixed-point shooting, and the time period is determined based on the environment self-recognition, the captured image is matched with the template image, the target object is positioned and enlarged, and the clarity is evaluated to ensure the image clarity before uploading.
It achieves fast, complete and clear photo acquisition of target objects, reduces hardware and labor costs, reduces the difficulty of installation and maintenance, and avoids blurred pictures and potential safety hazards.
Smart Images

Figure CN115811664B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and more specifically, to a multi-scene fixed-point capture method, a multi-scene fixed-point capture system, a computer-readable storage medium and an electronic device. Background Art
[0002] Daily inspection tasks have different working methods due to the needs of different scenarios, and are usually divided into manual inspection and robot collaborative inspection. Among them, manual inspection refers to manually carrying a camera to shoot and view the target object and manually count the data; robot collaborative inspection is that the robot calls the preset position of the pan-tilt head according to the positioning of the capture point to capture and obtain data at a fixed point, and uses auxiliary positioning technology to post and mark the target equipment in each scene. When the robot arrives at the point, it will aim the pan-tilt head directly at the relevant position according to the positioning device to capture and obtain data. It adopts a single device and single camera solution, and a single camera corresponds to multiple points of a single device, and captures data at a fixed time and at a fixed point.
[0003] At present, robots in various scene inspection systems are mostly composed of a visible light camera and an infrared thermal imaging camera. When inspecting equipment, it is necessary to use a visible light camera to capture the equipment and judge the equipment-related conditions after obtaining the captured image, including but not limited to equipment readings, equipment dirt or equipment damage, etc. Therefore, the quality requirements for the captured images are relatively high.
[0004] However, due to issues such as inspection efficiency, the mechanical structure of the camera-mounted gimbal, and environmental factors, there are many problems in obtaining relevant data during equipment inspections. The main reasons are as follows:
[0005] (1) Manual inspections are difficult in extreme environments, with numerous devices and difficult to check and count;
[0006] (2) Some large-scale ultra-high voltage substations or equipment rooms involve more than 5,000 equipment capture points. The capture time of fixed points cannot be too long. If the image is captured while moving, the acquired image will be blurred or have ghosting, and the retention time is too long, which will seriously affect the efficiency.
[0007] (3) When the robot reaches the capture point, the gimbal is called to aim the visible light camera at the device to capture. Due to the robot's accuracy at the point and the gap in the gimbal's rotation, the capture device will lose the original set target, and the acquired image data cannot be further judged;
[0008] (4) Using positioning equipment to capture a point, when the visible light camera rotates, the image difference of each frame is large, which will cause focusing problems, and the presented picture is blurred. In this case, the captured picture uploaded will also be blurred;
[0009] (5) In large scenes with many devices, if a single device and single camera solution is used, a large number of high-definition cameras will be required, the cost will be high, and the workload of installation and networking will be large. At the same time, the failure rate of multiple cameras is high, and the installation requires elevated equipment. The safe distance for maintenance and cleaning operations is not enough, there are safety hazards, and power outage maintenance is difficult. Summary of the invention
[0010] An object of the present invention is to provide a new technical solution for a multi-scene fixed-point capture method, system, storage medium and electronic device, which can at least solve the problems of low efficiency of image capture in different scenes, blurred images, and potential safety hazards in the prior art.
[0011] A first aspect of the present invention provides a multi-scene fixed-point capture method, comprising the following steps:
[0012] S1. Obtain a target map, collect data on objects in the target map, and generate a template image;
[0013] S2, driving the robot to enter the target map, and moving to the target point, taking a picture of the target point, and obtaining a photographed picture;
[0014] S3, comparing the captured image with the template image to determine whether the time period of the robot is night or day, and executing step S4 when it is determined that the time period of the robot is day; and executing step S4 after modifying the template image to a night image mode when it is determined that the time period of the robot is night;
[0015] S4, matching the captured image with the template image to find a target object in the captured image;
[0016] S5, after finding the target object in the captured image, locating and centering the target object, and enlarging the target object;
[0017] S6. Evaluate the clarity of the target object in the captured image, and upload the captured image if the target object meets the clarity requirement.
[0018] According to the multi-scene fixed-point capture method of an embodiment of the present invention, a template picture is taken in advance, and then the inspection robot is controlled to perform fixed-point shooting to obtain a captured picture. The time period of the robot is determined by combining environmental self-recognition, the captured picture is matched with the template picture, and after the target object is found, the positioning, centering and enlargement are performed. Finally, after the picture clarity is judged and the captured picture is uploaded after meeting the clarity requirements, the picture of the target object can be taken quickly, completely and clearly. This method does not require changing traditional hardware equipment, does not require installing cameras on each device in the entire scene, and does not require posting related pan-tilt auxiliary positioning equipment, which greatly reduces hardware costs as well as labor costs and labor workload.
[0019] According to one embodiment of the present invention, in step S1, the robot is driven to the target map to record points, and at each point, images of one or more objects are captured so that the objects are clearly imaged and centered in the picture, the points are saved, and the picture template is generated.
[0020] According to one embodiment of the present invention, step S2 includes:
[0021] S21, driving the robot to enter the target map;
[0022] S22, determining whether the robot has moved to the target point. If it is determined that the robot has not reached the target point, continue to drive the robot. If it is determined that the robot has reached the target point, execute step S23;
[0023] S23, adjusting the camera of the robot, performing gradient scaling on the camera, so that the target object is completely imaged on the screen, and obtaining the captured picture.
[0024] According to one embodiment of the present invention, in step S3, the method for determining whether the time period of the robot is night or day includes:
[0025] Determine whether the number of black and white pixels of the captured image exceeds 50% of a set threshold value. If the number of black and white pixels of the captured image exceeds the set threshold value, and the excess amount is greater than 50% of the set threshold value, determine that the time period in which the robot is located is night;
[0026] If the number of black and white pixels of the captured image exceeds the set threshold, and the excess amount is 20%-50% of the set threshold, the time period of the robot is determined in combination with the network time of the robot;
[0027] If the number of black and white pixels in the captured image exceeds the set threshold and the excess is less than 20% of the set threshold, or the number of black and white pixels in the captured image is less than the set threshold, it is determined that the time period in which the robot is located is daytime.
[0028] According to one embodiment of the present invention, step S4 includes:
[0029] S41, adjusting the scaling ratio of the picture template so that the scaling ratio of the template picture matches that of the captured picture;
[0030] S42, matching the captured image with the template image to obtain the best matching center point;
[0031] S43: searching for the target object in the captured image according to the center point.
[0032] According to one embodiment of the present invention, step S5 includes:
[0033] S51, after finding the target object in the captured image, returning the center point of the target object;
[0034] S52, after obtaining the center point, calculating the angle value that the robot's pan / tilt needs to rotate according to the focal length, physical zoom value and target surface size of the robot's camera;
[0035] S53, the pan / tilt adjusts the target object according to the angle value, so that the target object is centered in the picture, and enlarges the target object.
[0036] According to one embodiment of the present invention, in step S6, it is determined whether the clarity of the target object meets the clarity requirement based on a clarity evaluation algorithm. If the clarity of the target object does not meet the clarity requirement, step S5 is continued until the clarity of the target object meets the clarity requirement.
[0037] According to a second aspect of the present invention, a multi-scene fixed-point capture system is provided, comprising: a motion module, which is movable in a target map; a photographing module, which is used to photograph target points in the target map to obtain template images and photographed images; an environment self-recognition module, which determines whether the time period in which the photographing module is located is night or day by comparing the photographed image with the template image; an image matching module, which matches the photographed image with the template image to find the target object in the photographed image; a positioning module, which positions and centers the target object in the photographed image and enlarges the target object; and a clarity evaluation module, which evaluates the clarity of the target object in the photographed image and uploads the photographed image if the target object meets the clarity requirements.
[0038] According to a third aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the multi-scene fixed-point capture method of the above embodiment.
[0039] According to a fourth aspect of the present invention, an electronic device is provided, comprising: a processor and a memory, wherein computer program instructions are stored in the memory, wherein when the computer program instructions are executed by the processor, the processor executes the multi-scene fixed-point capture method of the above-mentioned embodiment.
[0040] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0042] Figure 1 is a flowchart of fixed-point recording in a multi-scene fixed-point snapshot method according to an embodiment of the present invention;
[0043] Figure 2 is an overall flow chart of a multi-scene fixed-point snapshot method according to an embodiment of the present invention;
[0044] Figure 3 It is a template image obtained by fixed-point recording in a multi-scene fixed-point snapshot method according to an embodiment of the present invention;
[0045] Figure 4 is a photograph captured at a point in a multi-scene fixed-point capture method according to an embodiment of the present invention;
[0046] Figure 5 is a photograph captured at a point in a multi-scene fixed-point capture method according to another embodiment of the present invention;
[0047] Figure 6 It is a picture obtained by obtaining the center of the target object after gradient scaling in the multi-scene fixed-point capture method according to another embodiment of the present invention;
[0048] Figure 7 is a picture obtained by pulling the target object back to the center of the picture in the multi-scene fixed-point snapshot method according to another embodiment of the present invention;
[0049] Figure 8 It is a picture whose clarity of the point-captured picture does not meet the set requirement in the multi-scene fixed-point capture method according to another embodiment of the present invention;
[0050] Fig. 9 It is a picture whose clarity meets the set requirements in the multi-scene fixed-point capture method according to another embodiment of the present invention;
[0051] Fig.10 is a working principle diagram of an electronic device according to an embodiment of the present invention.
[0052] Reference numerals:
[0053] Processor 201;
[0054] Memory 202; operating system 2021; application program 2022;
[0055] Network interface 203;
[0056] Input device 204;
[0057] Hard disk 205;
[0058] Display device 206. DETAILED DESCRIPTION
[0059] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0060] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0061] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0062] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0063] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0064] In the specification and claims of the present invention, if the term "first" or "second" is involved, it may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means two or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means that the objects connected before and after are in an "or" relationship.
[0065] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation to the present invention.
[0066] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" involved should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0067] The multi-scene fixed-point snapshot method according to an embodiment of the present invention is described in detail below with reference to the accompanying drawings.
[0068] The multi-scene fixed-point snapshot method according to an embodiment of the present invention comprises the following steps:
[0069] S1. Obtain a target map, collect data on objects in the target map, and generate a template image.
[0070] S2. Drive the robot to enter the target map and move to the target point, take a picture of the target point, and obtain a captured picture.
[0071] S3. Compare the captured image with the template image to determine whether the time period in which the robot is located is night or day, and when it is determined that the time period in which the robot is located is day, execute step S4; when it is determined that the time period in which the robot is located is night, modify the template image to a night image mode and then execute step S4.
[0072] S4: Match the captured image with the template image to find the target object in the captured image.
[0073] S5. After finding the target object in the captured image, the target object is positioned and centered, and the target object is enlarged.
[0074] S6. Evaluate the clarity of the target object in the captured image, and upload the captured image if the target object meets the clarity requirement.
[0075] In other words, the multi-scenario fixed-point snapshot method according to the embodiment of the present invention is combined with the relevant optimization of the inspection robot for snapshot, which is mainly used for a robot carrying a controllable pan-tilt and a visible light camera, using the fixed-point snapshot method, and combining multiple points into a route for daily inspection snapshot. It should be noted that the pan-tilt is an installation platform composed of two AC motors or DC motors, which can move horizontally and vertically.
[0076] Therefore, according to the multi-scene fixed-point capture method of an embodiment of the present invention, a template picture is taken in advance, and then the inspection robot is controlled to perform fixed-point shooting to obtain a captured picture. The time period of the robot is determined by combining environmental self-recognition, the captured picture is matched with the template picture, and the target object is located, centered and enlarged after being found. Finally, after the picture clarity is judged and the captured picture is uploaded after meeting the clarity requirements, the target object can be captured quickly, completely and clearly. This method does not require changing traditional hardware equipment, does not require installing cameras on each device in the entire scene, and does not require posting related pan-tilt auxiliary positioning equipment, which greatly reduces hardware costs as well as labor costs and workload.
[0077] According to one embodiment of the present invention, in step S1, the robot is driven to the target map to record points, and at each point, images of one or more objects are captured so that the objects are clearly imaged and centered in the picture, the points are saved, and the picture template is generated.
[0078] Specifically, Figure 1As shown, when the multi-scene fixed-point capture method according to an embodiment of the present invention is used, the inspection point is first recorded at a fixed point, and the robot is driven to the target map that needs to be inspected to perform point recording. At each point, one or more target objects are collected by calling the pan-tilt head to make the target object clearly imaged and centered in the picture, and then on this basis, the pan-tilt head preset position is recorded, the point is saved, and a point template image is generated.
[0079] After completing the fixed-point recording of the inspection points on the target map, the robot can be controlled to inspect and capture the points. Figure 2 As shown, step S2 includes:
[0080] S21, driving the robot to enter the target map;
[0081] S22, determining whether the robot has moved to the target point. If it is determined that the robot has not reached the target point, continue to drive the robot. If it is determined that the robot has reached the target point, execute step S23;
[0082] S23, adjusting the camera of the robot, performing gradient scaling on the camera, so that the target object is completely imaged on the screen, and obtaining the captured picture.
[0083] In other words, when controlling the robot to patrol and capture points, first drive the robot to move to the target map and move to the target point, then call the gimbal preset position, control the robot's drive module to stop moving, and send a judgment signal to the algorithm module to perform gradient scaling on the current camera to make the target object smaller so that it can be fully imaged on the screen, and the camera captures a picture to obtain a captured picture.
[0084] After taking the picture, the robot can self-identify the environment it is in. According to one embodiment of the present invention, in step S3, the method for determining whether the time period of the robot is night or day includes:
[0085] Determine whether the number of black and white pixels of the captured image exceeds 50% of a set threshold value. If the number of black and white pixels of the captured image exceeds the set threshold value, and the excess amount is greater than 50% of the set threshold value, determine that the time period in which the robot is located is night;
[0086] If the number of black and white pixels of the captured image exceeds the set threshold, and the excess amount is 20%-50% of the set threshold, the time period of the robot is determined in combination with the network time of the robot;
[0087] If the number of black and white pixels in the captured image exceeds the set threshold and the excess is less than 20% of the set threshold, or the number of black and white pixels in the captured image is less than the set threshold, it is determined that the time period in which the robot is located is daytime.
[0088] Because the imaging of the camera during the day and at night is very different, the preset template image generated during the day is in color, while at night it is in black and white. Therefore, the current capture environment is double-determined by image pixel judgment and actual time. If the number of black and white pixels in the current image is judged to be much higher than the set threshold, the robot is judged to be in night time. If it is only 20% more than the threshold, the current time of the robot is further judged to be night or day based on the current time of the robot. If the number of black and white pixels in the current image is small, the robot is judged to be in day time.
[0089] After the robot has self-identified its environment, it can then match the captured image with the template image.
[0090] In some specific embodiments of the present invention, step S4 includes:
[0091] S41, adjusting the scaling ratio of the picture template so that the scaling ratio of the template picture matches that of the captured picture;
[0092] S42, matching the captured image with the template image to obtain the best matching center point;
[0093] S43: searching for the target object in the captured image according to the center point.
[0094] That is to say, when the robot inspects the target point, it will use two pictures. One is the template picture automatically generated when the preset position is generated when the inspection point is initially recorded. This picture is the standard picture in the center of the target point, and the second picture is the gradient zoomed picture captured each time the inspection arrives at the point. The image of the target object is relatively small. The standard picture is matched with the captured picture to find the target object in the picture and return the overall center of the target object. That is, template picture matching is to find the most matching (similar) part of one image with another template image.
[0095] Specifically, the following Figure 3 and Figure 4 Take the picture required for the final recognition and judgment as an example to describe the algorithm, where: Figure 3 The template image generated when generating preset positions for recording inspection points. Figure 4 For each point capture, the captured picture is obtained by gradient scaling. Figure 4 The middle black box shown in Figure 3The template image shown in is scaled according to the percentage of the current zoom ratio and the template ratio. The scaled template image is used in Figure 4 Perform matching and obtain the best matching center point.
[0096] According to some embodiments of the present invention, step S5 comprises:
[0097] S51, after finding the target object in the captured image, returning the center point of the target object;
[0098] S52, after obtaining the center point, calculating the angle value that the robot's pan / tilt needs to rotate according to the focal length, physical zoom value and target surface size of the robot's camera;
[0099] S53, the pan / tilt adjusts the target object according to the angle value, so that the target object is centered in the picture, and enlarges the target object.
[0100] In other words, after the captured image is successfully matched with the template image, the center point of the target object will be returned, such as Figure 4 After obtaining the center point, calculate the angle value that the gimbal needs to rotate according to the camera's focal length, physical zoom value and target width. Finally, set the angle value and return it to the gimbal to center and magnify the target object. The angle value calculation formula is as follows:
[0101] Horizontal angle value = 2×tan(target surface size ÷ (2.0×camera focal length))×(180÷π)÷image pixel width×the horizontal angle value of the current gimbal.
[0102] Vertical angle value = 2×tan(target surface size ÷ (2.0×camera focal length))×(180÷π)×9÷16÷image pixel height×vertical angle value of the current gimbal.
[0103] The meanings or values of the parameters in the formula are as follows:
[0104] Tan: tangent value;
[0105] The value of π is 3.1415926;
[0106] Pixel: image unit;
[0107] Target size: pixel size*camera resolution;
[0108] Camera focal length value: physical zoom value * actual camera focal length.
[0109] According to the obtained horizontal angle value and vertical angle value, the current position of the gimbal is added or subtracted, and finally the gimbal position is corrected.
[0110] by Figures 5 to 7 Take the accompanying drawings as an example, where Figure 5 The picture shown is a shot taken by the robot at a certain point. There is a deviation in the target object in the picture. Figure 6 To perform gradient zooming on the robot's camera, the center of the target object can be obtained; Figure 7 To set the gimbal angle value based on the center point, pull the target object back to the center of the captured image.
[0111] Because the pictures captured by the camera are sometimes blurry, it is not conducive to the background to perform the next step of processing, resulting in failure to obtain data. Based on this, in some specific embodiments of the present invention, in step S6, it is determined whether the clarity of the target object meets the clarity requirement according to the clarity evaluation algorithm. If the clarity of the target object does not meet the clarity requirement, step S5 is continued until the clarity of the target object meets the clarity requirement.
[0112] Specifically, before sending the captured image to the backend, a blur determination is performed on it, and the image clarity evaluation algorithm is used to determine whether the current image is blurry. If the image is blurry, wait and continue to determine during this period, and upload the image after it is clear. The relevant logic of the image clarity evaluation algorithm can be to grayscale the entire image, traverse the pixels of the corresponding image, obtain the number of relevant grayscale values, and finally calculate the percentage, and set a certain threshold to determine whether the image is clear.
[0113] like Figure 8 and Fig. 9 As shown, Figure 8 The picture shown is a blurry picture taken by the camera. The clarity of the target object in the picture does not meet the clarity requirement, so the gimbal needs to be adjusted to take pictures. Fig. 9 It is a clear picture that meets the clarity requirements after clarity evaluation.
[0114] In summary, the multi-scene fixed-point capture method according to the embodiment of the present invention uses a series of algorithm logics at the software level to correct the target loss, target blur and target incompleteness caused by the preset position capture pictures. The present invention combines multiple technologies, such as environmental self-recognition, image template matching, target positioning and centering, image clarity evaluation and other methods to make the algorithm logic more functional and the algorithm more robust.
[0115] In addition, the present invention solves a series of capture problems (target loss, target blur and target incompleteness) caused by poor positioning accuracy and rotation gap of the current robot through the software level. Compared with the manual inspection method, it is more convenient and faster, and the data is recorded and presented in real time. For the traditional robot inspection and capture, the present invention has the support of algorithms, making the data more accurate, more robust and more representative. In addition, this method does not need to change the traditional hardware equipment, does not need to install cameras for each device in the entire scene, and does not need to post related pan-tilt auxiliary positioning equipment, which greatly reduces the hardware cost, labor cost and manual workload.
[0116] The multi-scene fixed-point capture system according to the embodiment of the present invention includes: a motion module, a photographing module, an environment self-recognition module, a picture matching module, a positioning module and a clarity evaluation module.
[0117] Specifically, the motion module is movable in the target map, the photographing module is used to take pictures of the target points in the target map to obtain template pictures and photographed pictures, the environmental self-identification module compares the photographed picture with the template picture to determine whether the time period in which the photographing module is located is night or day, the picture matching module matches the photographed picture with the template picture to find the target object in the photographed picture, the positioning module locates and centers the target object in the photographed picture and enlarges the target object, the clarity evaluation module evaluates the clarity of the target object in the photographed picture, and uploads the photographed picture if the target object meets the clarity requirements.
[0118] In other words, the multi-scene fixed-point snapshot method according to the embodiment of the present invention can be combined with and adopt the following technical solutions to implement related functions:
[0119] (1) Robot motion control module, including but not limited to robot equipment control, battery control and whole machine drive control.
[0120] (2) The robot's 3D navigation automatically matches the map information to the navigation module of the inspection point. According to the pre-saved map of the entire scene, the equipment is pre-set with inspection points and then automatically arrives at the point.
[0121] (3) The pan-tilt preset position function module is combined with the robot's inspection point. After arriving at the inspection point, the pan-tilt direction is set to directly obtain image data of relevant points on the equipment.
[0122] (4) High-quality image acquisition module, high-definition camera control protocol, and photo-taking operation after the gimbal is in place.
[0123] Therefore, according to the multi-scene fixed-point capture system of the embodiment of the present invention, based on the above functions, including capturing pictures, environmental self-recognition, picture template matching, target positioning and centering, and picture clarity evaluation, the captured pictures are uploaded after meeting the clarity requirements, and pictures of target objects can be taken quickly, completely and clearly. This method does not require changing traditional hardware equipment, does not require installing cameras on each device of the entire scene, and does not require posting related pan-tilt auxiliary positioning equipment, which greatly reduces hardware costs as well as labor costs and workload.
[0124] According to a third aspect of the present invention, an electronic device is also provided, comprising: a processor 201 and a memory 202, wherein computer program instructions are stored in the memory 202, wherein when the computer program instructions are executed by the processor 201, the processor 201 executes the multi-scene fixed-point capture method in the above-mentioned embodiment.
[0125] Furthermore, if Fig.10 As shown, the electronic device further includes a network interface 203 , an input device 204 , a hard disk 205 , and a display device 206 .
[0126] The above-mentioned interfaces and devices can be interconnected through a bus architecture. The bus architecture can include any number of interconnected buses and bridges. Specifically, one or more central processing units 201 (CPUs) represented by processor 201 and various circuits of one or more memories 202 represented by memory 202 are connected together. The bus architecture can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits together. It can be understood that the bus architecture is used to achieve connection and communication between these components. In addition to the data bus, the bus architecture also includes a power bus, a control bus, and a status signal bus, which are all well known in the art, so they will not be described in detail herein.
[0127] The network interface 203 can be connected to a network (such as the Internet, a local area network, etc.), obtain relevant data from the network, and save it in the hard disk 205.
[0128] The input device 204 can receive various instructions input by the operator and send them to the processor 201 for execution. The input device 204 can include a keyboard or a pointing device (for example, a mouse, a trackball, a touch pad or a touch screen, etc.).
[0129] The display device 206 can display the result obtained by the processor 201 executing the instruction.
[0130] The memory 202 is used to store programs and data necessary for the operation of the operating system 2021, as well as data such as intermediate results during the calculation process of the processor 201.
[0131] It is understood that the memory 202 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. The memory 202 of the apparatus and method described herein is intended to include, but is not limited to, these and any other suitable types of memory 202.
[0132] In some implementations, the memory 202 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system 2021 and application programs 2022 .
[0133] The operating system 2021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 2022 includes various application programs 2022, such as a browser, etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 2022.
[0134] The processor 201 , when calling and executing the application 2022 and data stored in the memory 202 , specifically, the program or instructions stored in the application 2022 , executes the steps of the multi-scene fixed-point capture method according to the above embodiment.
[0135] The method disclosed in the above embodiment of the present invention can be applied to the processor 201, or implemented by the processor 201. The processor 201 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 201 or the instruction in the form of software. The above processor 201 can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present invention. The general processor can be a microprocessor or the processor 201 can also be any conventional processor 201, etc. The steps of the method disclosed in conjunction with the embodiment of the present invention can be directly embodied as a hardware decoding processor to be executed, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 202, and the processor 201 reads the information in the memory 202 and completes the steps of the above method in combination with its hardware.
[0136] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions of the present application or a combination thereof.
[0137] For software implementation, the technology herein can be implemented by modules (e.g., procedures, functions, etc.) that perform the functions herein. The software code can be stored in the memory 202 and executed by the processor 201. The memory 202 can be implemented in the processor 201 or outside the processor 201.
[0138] Specifically, the processor 201 is also used to read the computer program and execute the following steps: predict the pile charging method and output the answer to the question asked by the user.
[0139] The fourth aspect of the present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by the processor 201, the processor 201 executes the steps of the multi-scene fixed-point capture method of the above embodiment.
[0140] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0141] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0142] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the sending and receiving methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0143] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will be appreciated by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A multi-scene fixed-point capture method, characterized in that: The following steps are involved: S1. Obtain a target map, collect data on objects in the target map, and generate a template image; S2, driving the robot to enter the target map, and move to the target point, taking a picture of the target point, and obtaining a photographed picture; S3, comparing the captured image with the template image to determine whether the time period of the robot is night or day, and executing step S4 when it is determined that the time period of the robot is day; and executing step S4 after modifying the template image to a night image mode when it is determined that the time period of the robot is night; S4, matching the captured image with the template image to find a target object in the captured image; S5, after finding the target object in the captured image, locating and centering the target object, and enlarging the target object; S6. Evaluate the clarity of the target object in the captured image, and upload the captured image if the target object meets the clarity requirement.
2. The method according to claim 1, characterized in that In step S1, the robot is driven to the target map to record points, and at each point, one or more objects are imaged so that the objects are clearly imaged and centered in the picture, the points are saved, and the template image is generated.
3. The method according to claim 1, characterized in that Step S2 includes: S21, driving the robot to enter the target map; S22, determining whether the robot has moved to the target point. If it is determined that the robot has not reached the target point, continue to drive the robot. If it is determined that the robot has reached the target point, execute step S23; S23, adjusting the camera of the robot, performing gradient scaling on the camera, so that the target object is completely imaged on the screen, and obtaining the captured picture.
4. The method according to claim 1, characterized in that: In step S3, the method for determining whether the time period of the robot is night or day includes: Determine whether the number of black and white pixels of the captured image exceeds 50% of a set threshold value. If the number of black and white pixels of the captured image exceeds the set threshold value, and the excess amount is greater than 50% of the set threshold value, determine that the time period in which the robot is located is night; If the number of black and white pixels of the captured image exceeds the set threshold, and the excess amount is 20%-50% of the set threshold, the time period of the robot is determined in combination with the network time of the robot; If the number of black and white pixels in the captured image exceeds the set threshold and the excess is less than 20% of the set threshold, or the number of black and white pixels in the captured image is less than the set threshold, it is determined that the time period in which the robot is located is daytime.
5. The method according to claim 1, characterized in that Step S4 includes: S41, adjusting the scaling ratio of the template image so that the scaling ratio of the template image matches that of the captured image; S42, matching the captured image with the template image to obtain the best matching center point; S43: searching for the target object in the captured image according to the center point.
6. The method according to claim 1, characterized in that Step S5 includes: S51, after finding the target object in the captured image, returning the center point of the target object; S52, after obtaining the center point, calculating the angle value that the robot's pan / tilt needs to rotate according to the focal length, physical zoom value and target surface size of the robot's camera; S53, the pan / tilt adjusts the target object according to the angle value, so that the target object is centered in the picture, and enlarges the target object.
7. The method according to claim 1, characterized in that In step S6, it is determined whether the clarity of the target object meets the clarity requirement according to the clarity evaluation algorithm. If the clarity of the target object does not meet the clarity requirement, step S5 is continued until the clarity of the target object meets the clarity requirement.
8. A multi-scene fixed-point capture system, characterized in that: include: A motion module, wherein the motion module is movable in a target map; A photographing module, the photographing module is used to take photos of the target points in the target map to obtain template pictures and shot pictures; An environment self-identification module, which determines whether the time period of the camera module is night or day by comparing the captured image with the template image; A picture matching module, wherein the picture matching module matches the captured picture with the template picture to find a target object in the captured picture; A positioning module, the positioning module locates and centers the target object in the captured image and enlarges the target object; A clarity evaluation module is used to evaluate the clarity of the target object in the captured image, and upload the captured image if the target object meets the clarity requirement.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the multi-scene fixed-point capture method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: A processor and a memory, wherein computer program instructions are stored in the memory, wherein when the computer program instructions are executed by the processor, the processor executes the multi-scene fixed-point capture method according to any one of claims 1 to 7.
